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

Improve the accuracy of the Spectral KMeans Method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.8
    • classic
    • Mahout 0.7

    Description

      The current implementation of the spectral KMeans algorithm (Andrew Ng. etc. NIPS 2002) in version 0.7 has two serious issues. These two incorrect implementations make it fail even for a very obvious trivial dataset. We have implemented a solution to resolve these two issues and hope to contribute back to the community.

      1. Issue 1:
        The EigenVerificationJob in version 0.7 does not check the orthogonality of eigenvectors, which is necessary to obtain the correct clustering results for the case of K>1; We have an idea and implementation to select based on cosAngle/orthogonality;
      1. Issue 2:
        The random seed initialization of KMeans algorithm is not optimal and sometimes a bad initialization will generate wrong clustering result. In this case, the selected K eigenvector actually provides a better way to initalize cluster centroids because each selected eigenvector is a relaxed indicator of the memberships of one cluster. For every selected eigenvector, we use the data point whose eigen component achieves the maximum absolute value.

      We have already verified our improvement on synthetic dataset and it shows that the improved version get the optimal clustering result while the current 0.7 version obtains the wrong result.

      Attachments

        1. matrix_2
          0.4 kB
          Yiqun Hu
        2. matrix_1
          0.4 kB
          Yiqun Hu
        3. MAHOUT-1214.patch
          4 kB
          Robin Anil
        4. MAHOUT-1214.patch
          39 kB
          zhangda

        Activity

          People

            robinanil Robin Anil
            yiqun Yiqun Hu
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: