lib/rumale/clustering/k_means.rb in rumale-clustering-0.28.0 vs lib/rumale/clustering/k_means.rb in rumale-clustering-0.28.1

- old
+ new

@@ -41,10 +41,10 @@ @params = { n_clusters: n_clusters, init: (init == 'random' ? 'random' : 'k-means++'), max_iter: max_iter, tol: tol, - random_seed: (random_seed || srand) + random_seed: random_seed || srand } @rng = Random.new(@params[:random_seed]) end # Analysis clusters with given training data.