Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1315

MultiKMeansPlusPlusClusterer buggy for alternative evaluators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 3.5
    • None
    • None
    • None

    Description

      I just looked into the source code for the MultiKMeansPlusPlusClusterer and realized that it would return null in case of an alternative evaluator that favors bigger values instead of smaller ones:
      The basic idea of the clustering method is that we perform n clusterings and choose the best result. The decision what's the best result is performed by the evaluator, which by default assumes smaller values are better.
      According to the documentation, we can also provide a different evaluator, which for instance would decide that bigger values are better, but given we initialize the best value with Double.POSITIVE_INFINITY in method MultiKMeansPlusPlusClusterer.cluster(Collection<T>), we would never find a "better" result and thus always return null.

      Attachments

        1. MATH-1315.patch
          0.9 kB
          Gilles Sadowski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thorstenschaefer Thorsten Schäfer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: