Skip to content

Commit

Permalink
Do not change given pinned points
Browse files Browse the repository at this point in the history
  • Loading branch information
jondo committed Mar 30, 2021
1 parent c35db5f commit c750482
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,11 +1146,12 @@ def simplicial_set_embedding(
if output_dens:
aux_data["rad_orig"] = ro

embedding = (
10.0
* (embedding - np.min(embedding, 0))
/ (np.max(embedding, 0) - np.min(embedding, 0))
).astype(np.float32, order="C")
if isinstance(init, str) or pin_mask is None: # Do not change given pinned points.
embedding = (
10.0
* (embedding - np.min(embedding, 0))
/ (np.max(embedding, 0) - np.min(embedding, 0))
).astype(np.float32, order="C")

if euclidean_output:
if pin_mask is not None:
Expand Down

0 comments on commit c750482

Please sign in to comment.