Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-845

Make cluster top terms code more reusable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.7
    • Component/s: Clustering
    • Labels:
      None

      Description

      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?

        Attachments

        1. MAHOUT-845.patch
          18 kB
          Frank Scholten
        2. MAHOUT-845.patch
          20 kB
          Frank Scholten
        3. MAHOUT-845.patch
          25 kB
          Frank Scholten

          Activity

            People

            • Assignee:
              jake.mannix Jake Mannix
              Reporter:
              frankscholten Frank Scholten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: