[mlpack-git] [mlpack] Mean shift clustering (#388)
Shangtong Zhang
notifications at github.com
Tue Jan 27 09:35:18 EST 2015
> + BOOST_REQUIRE_NE(firstClass, secondClass);
> +
> + for (size_t i = 13; i < 20; i++)
> + BOOST_REQUIRE_EQUAL(assignments(i), secondClass);
> +
> + size_t thirdClass = assignments(20);
> +
> + // To ensure that this is the third class which we haven't seen yet.
> + BOOST_REQUIRE_NE(firstClass, thirdClass);
> + BOOST_REQUIRE_NE(secondClass, thirdClass);
> +
> + for (size_t i = 20; i < 30; i++)
> + BOOST_REQUIRE_EQUAL(assignments(i), thirdClass);
> +
> +}
> +
Two points may converge to one same centroid, so even duplicate thresh is set to 0, the number of clusters may be still less than dataset.n_cols.
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/388/files#r23611075
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150127/2b08a2b5/attachment-0001.html>
More information about the mlpack-git
mailing list