From d138f080e138c51467c5e66e7900a682a6785856 Mon Sep 17 00:00:00 2001 From: candalfigomoro <50733646+candalfigomoro@users.noreply.github.com> Date: Mon, 20 May 2019 09:58:30 +0200 Subject: [PATCH] Use random_state param (#238) --- umap/umap_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/umap_.py b/umap/umap_.py index 0b5a5669..91c068ea 100644 --- a/umap/umap_.py +++ b/umap/umap_.py @@ -978,7 +978,7 @@ def simplicial_set_embedding( tree = KDTree(init_data) dist, ind = tree.query(init_data, k=2) nndist = np.mean(dist[:, 1]) - embedding = init_data + np.random.normal( + embedding = init_data + random_state.normal( scale=0.001 * nndist, size=init_data.shape ).astype(np.float32) else: