TST More informative error message in test_preserve_trustworthiness_approximately
@@ -244,7 +244,9 @@ 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)
+ assert_greater(t, 0.9, msg='Trustworthiness={:0.3f} < 0.9 '
+ 'for method={} and '
+ 'init={}'.format(t, method, init))
def test_optimization_minimizes_kl_divergence():
