[ https://issues.apache.org/jira/browse/MAHOUT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613262#action_12613262 ]
Ted Dunning commented on MAHOUT-65: ----------------------------------- It is a fair preference to prefer that the labels be loosely bound to vectors, but I would prefer otherwise. Obviously, either of us could live with the opposing view. The idea that the label should be more than a string is interesting. I am not sure if it should have such an elaborate structure, as opposed to something based on inheritance more like this: {code:java} interface Label { String getName() } class StringLabel extends Label { String name; String getName() {return name} } class OrdinalLabel extends Label { ... } {code} and so on. Note that I only use interface here for clarity of exposition. I know your antipathy to interfaces and preference for abstract classes. Also, what do you mean by a label with type "real"? > Add Element Labels to Vectors and Matrices > ------------------------------------------ > > Key: MAHOUT-65 > URL: https://issues.apache.org/jira/browse/MAHOUT-65 > Project: Mahout > Issue Type: New Feature > Components: Matrix > Reporter: Jeff Eastman > Attachments: MAHOUT-65.patch > > > Many applications can benefit by accessing elements in vectors and matrices > using String labels in addition to numeric indices. Investigate adding such a > capability. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.