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
Bug: can't cluster simple data without ccore=True #407
Comments
@Jeff-Tian, thank you for the bug reporting and code example. It's a definitely bug that will be corrected soon. |
…hm (C/C++ handles this, correction is not required).
@Jeff-Tian, I have corrected it on '0.8.dev' branch. It works for 'CCORE' because 'std::log(x)' is able to perform calculation for values that are less or equal to zero: double value = std::log(0); /* equals to '-inf' */ But it does not work for Python - exception is thrown instead. |
Wow, checked it and it works now! Thank you for so quickly turnaround. |
@Jeff-Tian, if you are going to use '0.8.dev' - it a development branch. So, you need to build CCORE by yourself. For linux: cd pyclustering/ccore
make ccore_x64 # if you are working on x64
make ccore_x86 # if you are working on x86 And for windows using visual studio project 2015: pyclustering\ccore\ccore.sln Here is an instruction how to do that: https://github.com/annoviko/pyclustering/wiki/Core-of-the-PyClustering If you faced with problems related to pyclustering, do not hesitate to ask for help. |
@annoviko, thank you for the information! Yesterday I just checked out '0.8.dev' branch and run the python version very well. If later I need to build a CCORE I will reference the information you provided. |
throws: ValueError: math domain error
But if turn on ccore = True, then the result is correct:
The text was updated successfully, but these errors were encountered: