Skip to content

Commit

Permalink
Merge pull request #690 from jamestwebber/patch-1
Browse files Browse the repository at this point in the history
Fixed typo in warning
  • Loading branch information
lmcinnes authored Jun 8, 2021
2 parents 3ca8382 + 850a16d commit 0865ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,8 @@ def _dist_only(x, y, *kwds):
self._inverse_distance_func = None
warn(
"custom distance metric does not return gradient; inverse_transform will be unavailable. "
"To enable using inverse_transform method method, define a distance function that returns "
"a tuple of (distance [float], gradient [np.array])"
"To enable using inverse_transform method, define a distance function that returns a tuple "
"of (distance [float], gradient [np.array])"
)
elif self.metric == "precomputed":
if self.unique:
Expand Down

0 comments on commit 0865ef1

Please sign in to comment.