[MRG+1] Make TSNE trustworthiness test more robust
Platform specific rounding errors can make the t-SNE algorithm
converge to varying quality results especially on small datasets
as done in this test.
We therefore need a lower threshold to account for that
variability.
@@ -244,7 +244,7 @@ def test_preserve_trustworthiness_approximately():
method=method)
X_embedded = tsne.fit_transform(X)
t = trustworthiness(X, X_embedded, n_neighbors=1)
- assert_greater(t, 0.9, msg='Trustworthiness={:0.3f} < 0.9 '
+ assert_greater(t, 0.85, msg='Trustworthiness={:0.3f} < 0.85 '
'for method={} and '
'init={}'.format(t, method, init))
