[med-svn] [Git][med-team/umap-learn][master] Fix further tests
Andreas Tille (@tille)
gitlab at salsa.debian.org
Thu Feb 9 19:01:46 GMT 2023
Andreas Tille pushed to branch master at Debian Med / umap-learn
Commits:
0f6789fe by Andreas Tille at 2023-02-09T20:01:23+01:00
Fix further tests
- - - - -
3 changed files:
- + debian/patches/fix_further_tests.patch
- + debian/patches/numpy_1.24.patch
- debian/patches/series
Changes:
=====================================
debian/patches/fix_further_tests.patch
=====================================
@@ -0,0 +1,9 @@
+--- a/umap/tests/test_densmap.py
++++ b/umap/tests/test_densmap.py
+@@ -76,5 +76,5 @@ def test_densmap_trustworthiness_on_iris
+ embedding = densmap_iris_model.embedding_
+ trust = trustworthiness(iris.data, embedding, n_neighbors=10)
+ assert (
+- trust >= 0.97
++ trust >= 0.95
+ ), "Insufficiently trustworthy embedding for" "iris dataset: {}".format(trust)
=====================================
debian/patches/numpy_1.24.patch
=====================================
@@ -0,0 +1,14 @@
+--- a/umap/umap_.py
++++ b/umap/umap_.py
+@@ -2375,9 +2375,9 @@ class UMAP(BaseEstimator):
+ raise ValueError("Non-zero distances from samples to themselves!")
+ if self.knn_dists is None:
+ self._knn_indices = np.zeros(
+- (X.shape[0], self.n_neighbors), dtype=np.int
++ (X.shape[0], self.n_neighbors), dtype=int
+ )
+- self._knn_dists = np.zeros(self._knn_indices.shape, dtype=np.float)
++ self._knn_dists = np.zeros(self._knn_indices.shape, dtype=float)
+ for row_id in range(X.shape[0]):
+ # Find KNNs row-by-row
+ row_data = X[row_id].data
=====================================
debian/patches/series
=====================================
@@ -4,3 +4,5 @@ a714b59bd9e2ca2e63312bc3491b2b037a42f2f2.patch
c7d05683325589ad432a55e109cacb9d631cfaa9.patch
6c433a36e1811e5c6109ea3414e1916c2347955f.patch
3ca4cf8620e25ceb8b4602648f4092d7a904a282.patch
+fix_further_tests.patch
+numpy_1.24.patch
View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/0f6789fe301f8ad7377f6c5d0eeea6b558d318ae
--
View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/0f6789fe301f8ad7377f6c5d0eeea6b558d318ae
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230209/08f523f0/attachment-0001.htm>
More information about the debian-med-commit
mailing list