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

Removed duplicated code from getTopTerms and getTopFeatures in AbstractClusterWriter

    XMLWordPrintableJSON

    Details

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

      Description

      The class org.apache.mahout.utils.clusteringAbstractClusterWriterTest has duplicated code in the methods getTopFeatures and getTopTerms. The duplicated code was extracted to a third private method called getTopTermsPairs.

        Attachments

        1. refactoring.patch
          5 kB
          Diego Carrion

          Activity

            People

            • Assignee:
              smarthi Suneel Marthi
              Reporter:
              dcrec1 Diego Carrion
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: