From 850a16d2954f25447d33e5ff107b209c5e7eef41 Mon Sep 17 00:00:00 2001 From: James Webber Date: Tue, 8 Jun 2021 16:48:58 -0400 Subject: [PATCH] fixed typo in warning --- umap/umap_.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/umap_.py b/umap/umap_.py index 1fb9de27..6d1db932 100644 --- a/umap/umap_.py +++ b/umap/umap_.py @@ -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: