[Debian-pan-maintainers] Bug#1004706: opentsne: FTBFS on i386, test failure
Graham Inggs
ginggs at debian.org
Mon Jan 31 21:39:02 GMT 2022
Source: opentsne
Version: 0.6.1-2
Severity: serious
Tags: ftbfs
Hi Maintainer
opentsne FTBFS on i386 [1] and this currently blocks migration to
testing. I've copied what I hope is the relevant part of the log
below.
Regards
Graham
[1] https://buildd.debian.org/status/logs.php?pkg=opentsne&arch=i386
=================================== FAILURES ===================================
_________ TestTSNECorrectnessUsingPrecomputedDistanceMatrix.test_iris __________
self = <tests.test_correctness.TestTSNECorrectnessUsingPrecomputedDistanceMatrix
testMethod=test_iris>
def test_iris(self):
x = datasets.load_iris().data
x += np.random.normal(0, 1e-3, x.shape) # iris contains duplicate rows
distances = squareform(pdist(x))
params = dict(initialization="random", random_state=0)
embedding1 = TSNE(metric="precomputed", **params).fit(distances)
embedding2 = TSNE(metric="euclidean", **params).fit(x)
> np.testing.assert_almost_equal(embedding1, embedding2)
E AssertionError:
E Arrays are not almost equal to 7 decimals
E
E Mismatched elements: 300 / 300 (100%)
E Max absolute difference: 3.4794089
E Max relative difference: 19.31117662
E x: TSNEEmbedding([[ -8.8343696, 14.5389743],
E [ -6.5431559, 15.9090961],
E [ -7.3407737, 16.6576344],...
E y: TSNEEmbedding([[ -8.8276681, 14.0647152],
E [ -6.1690237, 14.5453917],
E [ -6.8637968, 15.4036782],...
tests/test_correctness.py:299: AssertionError
=========================== short test summary info ============================
FAILED tests/test_correctness.py::TestTSNECorrectnessUsingPrecomputedDistanceMatrix::test_iris
More information about the Debian-pan-maintainers
mailing list