[mlpack] 41/149: Don't ignore distance calculations during cluster-moving calculations.

Barak A. Pearlmutter barak+git at pearlmutter.net
Sat May 2 09:11:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit c62769135ffe333cdeafa19a2899342e1b2e9a7d
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Sun Oct 12 21:10:03 2014 +0000

    Don't ignore distance calculations during cluster-moving calculations.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17249 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp b/src/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp
index 4a2bf83..4309f01 100644
--- a/src/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp
+++ b/src/mlpack/methods/kmeans/pelleg_moore_kmeans_impl.hpp
@@ -81,6 +81,7 @@ double PellegMooreKMeans<MetricType, MatType>::Iterate(
                                            newCentroids.col(c)), 2.0);
     }
   }
+  distanceCalculations += centroids.n_cols;
 
   return std::sqrt(residual);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list