FAIL: test_with_1_empty (tests.initialisations.test_bradleyfayyad1998.BfTestSuite)
Seeds and data known to leave one empty cluster after k_means(),
Traceback (most recent call last):
File "/home/simon/project_git/pykmeans/tests/initialisations/test_bradleyfayyad1998.py", line 81, in test_with_1_empty
np.testing.assert_array_equal(labels, expected_labels)
File "/home/simon/anaconda3/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 935, in assert_array_equal
assert_array_compare(operator.eq, x, y, err_msg=err_msg,
File "/home/simon/anaconda3/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 846, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
Mismatched elements: 2 / 5 (40%)
Max absolute difference: 2
Max relative difference: 0.5
x: array([1, 1, 1, 2, 0])
y: array([2, 1, 1, 0, 0])
FAIL: test_with_1_empty (tests.initialisations.test_bradleyfayyad1998.BfTestSuite)
Seeds and data known to leave one empty cluster after k_means(),
Traceback (most recent call last):
File "/home/simon/project_git/pykmeans/tests/initialisations/test_bradleyfayyad1998.py", line 81, in test_with_1_empty
np.testing.assert_array_equal(labels, expected_labels)
File "/home/simon/anaconda3/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 935, in assert_array_equal
assert_array_compare(operator.eq, x, y, err_msg=err_msg,
File "/home/simon/anaconda3/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 846, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
Mismatched elements: 2 / 5 (40%)
Max absolute difference: 2
Max relative difference: 0.5
x: array([1, 1, 1, 2, 0])
y: array([2, 1, 1, 0, 0])