Skip to content

Commit

Permalink
Merge pull request #240 from candalfigomoro/patch-1
Browse files Browse the repository at this point in the history
Use random_state param (#238)
  • Loading branch information
lmcinnes authored May 20, 2019
2 parents 78cddbb + d138f08 commit 43ef61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 43ef61a

Please sign in to comment.