[mlpack] 70/207: Set cluster of a point when ProcessPoint() is called.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 061ee789cd14338506f2b68f1140791e5a6d1f1a
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Aug 3 17:54:04 2016 -0400
Set cluster of a point when ProcessPoint() is called.
---
src/mlpack/methods/dbscan/dbscan_impl.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mlpack/methods/dbscan/dbscan_impl.hpp b/src/mlpack/methods/dbscan/dbscan_impl.hpp
index f701864..ea89450 100644
--- a/src/mlpack/methods/dbscan/dbscan_impl.hpp
+++ b/src/mlpack/methods/dbscan/dbscan_impl.hpp
@@ -121,6 +121,8 @@ size_t DBSCAN<RangeSearchType, PointSelectionPolicy>::ProcessPoint(
}
else
{
+ assignments[index] = currentCluster;
+
// New cluster.
for (size_t j = 0; j < neighbors[index].size(); ++j)
{
--
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