[med-svn] [Git][med-team/umap-learn][master] update patch
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sat Feb 11 04:12:17 GMT 2023
Nilesh Patra pushed to branch master at Debian Med / umap-learn
Commits:
ca506a20 by Nilesh Patra at 2023-02-11T04:12:09+00:00
update patch
- - - - -
1 changed file:
- debian/patches/fix-example.patch
Changes:
=====================================
debian/patches/fix-example.patch
=====================================
@@ -1,8 +1,6 @@
-diff --git a/examples/inverse_transform_example.py b/examples/inverse_transform_example.py
-index 1e9af6d..30c5c82 100755
--- a/examples/inverse_transform_example.py
+++ b/examples/inverse_transform_example.py
-@@ -41,7 +41,6 @@ inv_transformed_points = trans.inverse_transform(test_pts)
+@@ -41,7 +41,6 @@
plt.scatter(
trans.embedding_[:, 0],
trans.embedding_[:, 1],
@@ -10,11 +8,14 @@ index 1e9af6d..30c5c82 100755
cmap="Spectral",
s=0.25,
)
-diff --git a/examples/mnist_torus_sphere_example.py b/examples/mnist_torus_sphere_example.py
-index 26d6d59..6e5c372 100755
+@@ -58,3 +57,4 @@
+ ax[i, j].get_yaxis().set_visible(False)
+
+ plt.show()
++plt.close()
--- a/examples/mnist_torus_sphere_example.py
+++ b/examples/mnist_torus_sphere_example.py
-@@ -32,6 +32,7 @@ if "plane" in target_spaces:
+@@ -32,6 +32,7 @@
trans.embedding_[:, 0], trans.embedding_[:, 1], c=y_train, cmap="Spectral"
)
plt.show()
@@ -22,7 +23,7 @@ index 26d6d59..6e5c372 100755
if "torus" in target_spaces:
# embed onto a torus
-@@ -87,6 +88,7 @@ if "torus" in target_spaces:
+@@ -87,6 +88,7 @@
)
mlab.show()
@@ -30,16 +31,14 @@ index 26d6d59..6e5c372 100755
if "sphere" in target_spaces:
# embed onto a sphere
-@@ -118,3 +120,4 @@ if "sphere" in target_spaces:
+@@ -118,3 +120,4 @@
)
mlab.show()
+ mlab.close()
-diff --git a/examples/mnist_transform_new_data.py b/examples/mnist_transform_new_data.py
-index 8c45236..1094b68 100755
--- a/examples/mnist_transform_new_data.py
+++ b/examples/mnist_transform_new_data.py
-@@ -46,3 +46,4 @@ plt.suptitle("MNIST data embedded into two dimensions by UMAP", fontsize=18)
+@@ -46,3 +46,4 @@
ax[0].set_title("Training Set", fontsize=12)
ax[1].set_title("Test Set", fontsize=12)
plt.show()
View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/ca506a2082a754cff42e0029205ad3c834a522a2
--
View it on GitLab: https://salsa.debian.org/med-team/umap-learn/-/commit/ca506a2082a754cff42e0029205ad3c834a522a2
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/20230211/aa422e95/attachment-0001.htm>
More information about the debian-med-commit
mailing list