[mlpack-svn] r12077 - mlpack/trunk/src/mlpack/methods/kmeans
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Mar 27 18:14:39 EDT 2012
Author: jcline3
Date: 2012-03-27 18:14:38 -0400 (Tue, 27 Mar 2012)
New Revision: 12077
Modified:
mlpack/trunk/src/mlpack/methods/kmeans/kmeans_impl.hpp
Log:
Forgot to commit this, fixes forgetting to set minDistance
Modified: mlpack/trunk/src/mlpack/methods/kmeans/kmeans_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/kmeans/kmeans_impl.hpp 2012-03-27 22:13:40 UTC (rev 12076)
+++ mlpack/trunk/src/mlpack/methods/kmeans/kmeans_impl.hpp 2012-03-27 22:14:38 UTC (rev 12077)
@@ -82,7 +82,7 @@
counts.zeros();
// Build the mrkd-tree on this dataset
- tree::BinarySpaceTree<typename bound::HRectBound<2>, tree::MRKDStatistic> tree(data, 10);
+ tree::BinarySpaceTree<typename bound::HRectBound<2>, tree::MRKDStatistic> tree(data, 1);
std::cout << "Tree Built \n";
// A pointer for traversing the mrkd-tree
tree::BinarySpaceTree<typename bound::HRectBound<2>, tree::MRKDStatistic>* node;
@@ -334,6 +334,7 @@
else if (distance < minDistance)
{
minIndex = i;
+ minDistance = distance;
}
}
More information about the mlpack-svn
mailing list