You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Lance Norskog (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/13 22:45:51 UTC
[jira] [Issue Comment Edited] (MAHOUT-845) Make cluster top terms
code more reusable
[ https://issues.apache.org/jira/browse/MAHOUT-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149373#comment-13149373 ]
Lance Norskog edited comment on MAHOUT-845 at 11/13/11 9:45 PM:
----------------------------------------------------------------
1) Is this feature useful in any other code outside Clustering?
2) Can it be a static method? Vector has 14+ implementations, and all of them have to make sure they do nothing to screw this up. Some of them cannot support this effectively, and other would need to keep a cache as they are populated.
was (Author: lancenorskog):
1) Is this feature useful in any other code outside Clustering?
2) Can it be a static method somewhere rather than a method that has to be supported by the 14 currently known implementations of Vector?
> Make cluster top terms code more reusable
> -----------------------------------------
>
> Key: MAHOUT-845
> URL: https://issues.apache.org/jira/browse/MAHOUT-845
> Project: Mahout
> Issue Type: Improvement
> Components: Clustering
> Affects Versions: 0.5
> Reporter: Frank Scholten
> Priority: Minor
> Fix For: 0.6
>
> Attachments: MAHOUT-845.patch, MAHOUT-845.patch, MAHOUT-845.patch
>
>
> When working with Mahout text clustering I find that I keep writing code similar to the contents of
> public static String getTopFeatures(Cluster cluster, String[] dictionary, int numTerms)
> in ClusterDumper in order to determine cluster labels.
> I think it would be useful if (parts of) this code are added to the cluster or vector API so that you could do something like
> Cluster cluster = ... // get the cluster from seq file iterable
> String clusterLabel = cluster.getTopTerms(1, dictionary); // Do something with the label
> I think this would make it easier to export and post-process clustering results, like indexing or storing them elsewhere.
> Thoughts?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira