/[Apache-SVN]
ViewVC logotype

Revision 1298625


Jump to revision: Previous Next
Author: jeastman
Date: Thu Mar 8 22:27:28 2012 UTC (12 years, 1 month ago)
Changed paths: 18
Log Message:
MAHOUT-933:
- refactored ClusteringPolicies into hierarchy under new AbstractClusteringPolicy
- added close() to ClusteringPolicy to allow policy-specific actions needed to compute convergence
- removed ClusteringPolicy from ClusterIterator constructor as ClusterClassifier already has one
- added convergence computations for kmeans and fuzzyk
- added final clustersOut renaming to add -final suffix
- updated Display examples and unit tests to reflect above
- all tests run

I think it is time to begin refactoring the buildClusters methods of the respective clustering drivers to use ClusterIterator as it seems to be producing equivalent results to the original implementations. This will involve removing a lot of existing driver, mapper and reducer code and many time-consuming unit tests. It will also have some impact on other components as the representation of clusters in the file system changes from Cluster to self-describing ClusterWritable.

Changed paths

Path Details
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/classify/ClusterClassifier.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/AbstractClusteringPolicy.java added
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/CIReducer.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/CanopyClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/ClusterIterator.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/ClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/DirichletClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/FuzzyKMeansClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/KMeansClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/iterator/MeanShiftClusteringPolicy.java modified , text changed
Directorymahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/Kluster.java modified , text changed
Directorymahout/trunk/core/src/test/java/org/apache/mahout/clustering/iterator/TestClusterClassifier.java modified , text changed
Directorymahout/trunk/examples/src/main/java/org/apache/mahout/clustering/display/ClustersFilter.java modified , text changed
Directorymahout/trunk/examples/src/main/java/org/apache/mahout/clustering/display/DisplayClustering.java modified , text changed
Directorymahout/trunk/examples/src/main/java/org/apache/mahout/clustering/display/DisplayDirichlet.java modified , text changed
Directorymahout/trunk/examples/src/main/java/org/apache/mahout/clustering/display/DisplayFuzzyKMeans.java modified , text changed
Directorymahout/trunk/examples/src/main/java/org/apache/mahout/clustering/display/DisplayKMeans.java modified , text changed
Directorymahout/trunk/examples/src/test/java/org/apache/mahout/clustering/display/ClustersFilterTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26