Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-821

K-Means writes only k records as a output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • machine learning
    • None

    Description

      KMeans writes only k records, because 276 line at KMeansBSP overwrites the value for the key. I'm sure it was not intended..

      And, many people ask me about meaning of input and output of KMeans. We need to make K-Means example output lines more readable like,

      13/11/25 17:34:04 INFO kmeans.KMeansBSP: Finished! Writing the results...
      [5.1, 3.5, 1.4, 0.2] belongs to cluster 2
      [4.9, 3.0, 1.4, 0.2] belongs to cluster 2
      [4.7, 3.2, 1.3, 0.2] belongs to cluster 2
      [4.6, 3.1, 1.5, 0.2] belongs to cluster 2
      [5.0, 3.6, 1.4, 0.2] belongs to cluster 2
      ....
      

      Attachments

        1. HAMA-821.patch
          6 kB
          Edward J. Yoon

        Activity

          People

            udanax Edward J. Yoon
            udanax Edward J. Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: