File: 3ca4cf8620e25ceb8b4602648f4092d7a904a282.patch

package info (click to toggle)
umap-learn 0.5.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,468 kB
  • sloc: python: 9,458; sh: 87; makefile: 20
file content (26 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 3ca4cf8620e25ceb8b4602648f4092d7a904a282 Mon Sep 17 00:00:00 2001
From: Leland McInnes <leland.mcinnes@gmail.com>
Date: Tue, 27 Dec 2022 21:15:56 -0500
Subject: [PATCH] Without numba we lose some accuracy; lower for coverage

---
 umap/tests/test_composite_models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/umap/tests/test_composite_models.py
+++ b/umap/tests/test_composite_models.py
@@ -25,12 +25,12 @@
     model3 = model1 * model2
     trust = trustworthiness(data, model3.embedding_, n_neighbors=10)
     assert (
-        trust >= 0.82
+        trust >= 0.80
     ), "Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust)
     model4 = model1 + model2
     trust = trustworthiness(data, model4.embedding_, n_neighbors=10)
     assert (
-        trust >= 0.82
+        trust >= 0.80
     ), "Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust)
 
     with pytest.raises(ValueError):