Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure in B&F #3

Open
simonharris opened this issue Nov 12, 2020 · 0 comments
Open

Test failure in B&F #3

simonharris opened this issue Nov 12, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simonharris
Copy link
Owner

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])

@simonharris simonharris added the bug Something isn't working label Nov 12, 2020
@simonharris simonharris self-assigned this Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant