Skip to content

Commit

Permalink
Weaken thresholds to deal with lower number of epochs in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Nov 24, 2020
1 parent 23b2e52 commit 4fd1a08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion umap/tests/test_aligned_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def test_local_clustering(aligned_iris, aligned_iris_model):
embd = aligned_iris_model.embeddings_[3]
clusters = KMeans(n_clusters=2).fit_predict(embd)
ari = adjusted_rand_score(target[3], clusters)
assert_greater_equal(ari, 0.5)
assert_greater_equal(ari, 0.40)
12 changes: 6 additions & 6 deletions umap/tests/test_composite_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ def test_composite_trustworthiness(nn_data):
trust = trustworthiness(data, model3.embedding_, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust),
)
model4 = model1 + model2
trust = trustworthiness(data, model4.embedding_, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust),
)

Expand All @@ -52,14 +52,14 @@ def test_composite_trustworthiness_random_init(nn_data):
trust = trustworthiness(data, model3.embedding_, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust),
)
model4 = model1 + model2
trust = trustworthiness(data, model4.embedding_, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "nn dataset: {}".format(trust),
)

Expand All @@ -76,13 +76,13 @@ def test_composite_trustworthiness_on_iris(iris):
trust = trustworthiness(iris.data, embedding, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "iris dataset: {}".format(trust),
)
embedding = (iris_model1 * iris_model2).embedding_
trust = trustworthiness(iris.data, embedding, 10)
assert_greater_equal(
trust,
0.85,
0.82,
"Insufficiently trustworthy embedding for" "iris dataset: {}".format(trust),
)

0 comments on commit 4fd1a08

Please sign in to comment.