[mlpack-git] master: Don't set the random seed! That is done at higher levels. (cb3c489)

gitdub at mlpack.org gitdub at mlpack.org
Tue Apr 12 10:43:52 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/eeba6bdc50ad4d785cb6880edbaba78173036ca6...8d77f4231046703d5c0c05ed4795458f98267968

>---------------------------------------------------------------

commit cb3c489bee51315735bc7abd72960a08c3ec77d8
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Apr 8 19:56:38 2016 +0000

    Don't set the random seed!  That is done at higher levels.


>---------------------------------------------------------------

cb3c489bee51315735bc7abd72960a08c3ec77d8
 src/mlpack/methods/kmeans/refined_start_impl.hpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/mlpack/methods/kmeans/refined_start_impl.hpp b/src/mlpack/methods/kmeans/refined_start_impl.hpp
index 14c92d2..1b178b9 100644
--- a/src/mlpack/methods/kmeans/refined_start_impl.hpp
+++ b/src/mlpack/methods/kmeans/refined_start_impl.hpp
@@ -21,8 +21,6 @@ void RefinedStart::Cluster(const MatType& data,
                            const size_t clusters,
                            arma::Row<size_t>& assignments) const
 {
-  math::RandomSeed(std::time(NULL));
-
   // This will hold the sampled datasets.
   const size_t numPoints = size_t(percentage * data.n_cols);
   MatType sampledData(data.n_rows, numPoints);




More information about the mlpack-git mailing list