Giter VIP home page Giter VIP logo

ckmeans's Issues

Unit Test failure

when i add a commit (ianfhunter@ada0717) to actually execute the unittest, it fails:

Numpy Version: 1.14.1
Nose Version: 1.3.7

$ python3 ckmeans_test.py

[6.05700724 2.99513288 0. ]
.[0. 0. 2.]
.[4.84676140e-27 3.36949153e+01 9.77107099e-24 1.57746479e+01
3.38461538e+01 4.32000000e+01 3.77387755e+02 1.39285714e+01
2.11421053e+02 0.00000000e+00]
F

FAIL: test_guess_k (main.TestCkmeans)

Traceback (most recent call last):
File "ckmeans_test.py", line 82, in test_guess_k
self.run_test('guess_k')
File "ckmeans_test.py", line 76, in run_test
self.compare_results(my_result, r_result)
File "ckmeans_test.py", line 52, in compare_results
np.asarray(r_result.rx2('cluster')) - 1
File "ckmeans_test.py", line 46, in assertArraysEqual
np.testing.assert_allclose(array1, array2, *args, **kwargs, err_msg=label, verbose=True)
File "/home/ian/.local/lib/python3.6/site-packages/numpy/testing/nose_tools/utils.py", line 1396, in assert_allclose
verbose=verbose, header=header, equal_nan=equal_nan)
File "/home/ian/.local/lib/python3.6/site-packages/numpy/testing/nose_tools/utils.py", line 779, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
clustering
(mismatch 23.95833333333333%)
x: array([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
y: array([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...


Ran 3 tests in 0.116s

FAILED (failures=1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.