Skip to content

Commit

Permalink
Random initialization should support arbitrary embedding dimension.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Jan 24, 2018
1 parent 75eeffa commit 1935941
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 @@ -1111,7 +1111,7 @@ def simplicial_set_embedding(graph, n_components,

if isinstance(init, str) and init == 'random':
embedding = random_state.uniform(low=-10.0, high=10.0,
size=(graph.shape[0], 2))
size=(graph.shape[0], n_components))
elif isinstance(init, str) and init == 'spectral':
# We add a little noise to avoid local minima for optimization to come
initialisation = spectral_layout(graph, n_components, random_state)
Expand Down

0 comments on commit 1935941

Please sign in to comment.