scikit-learn-contrib / hdbscan

A high performance implementation of HDBSCAN clustering.
http://hdbscan.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.77k stars 496 forks source link

error while running hdbscan test #553

Open hbazizi opened 2 years ago

hbazizi commented 2 years ago

Hi

I got the below error while running the hdbscan test. is there any significant issues? Appreciate your help.

thank you

PS C:\Users\K19067372\Documents> nosetests -s hdbscan ............................................EE..........E

ERROR: hdbscan.tests.test_hdbscan.test_hdbscan_is_sklearn_estimator

Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest self.test(*self.arg) File "C:\Program Files\Anaconda3\lib\site-packages\hdbscan\tests\test_hdbscan.py", line 646, in test_hdbscan_is_sklearn_e stimator check_estimator(HDBSCAN) File "C:\Program Files\Anaconda3\lib\site-packages\sklearn\utils\estimator_checks.py", line 567, in check_estimator raise TypeError(msg) TypeError: Passing a class was deprecated in version 0.23 and isn't supported anymore from 0.24.Please pass an instance ins tead.

====================================================================== ERROR: hdbscan.tests.test_prediction_utils.test_safe_always_positive_division

Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest self.test(*self.arg) TypeError: test_safe_always_positive_division() missing 1 required positional argument: 'denominator'

====================================================================== ERROR: hdbscan.tests.test_rsl.test_rsl_is_sklearn_estimator

Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\nose\case.py", line 197, in runTest self.test(*self.arg) File "C:\Program Files\Anaconda3\lib\site-packages\hdbscan\tests\test_rsl.py", line 197, in test_rsl_is_sklearn_estimator

check_estimator(RobustSingleLinkage)

File "C:\Program Files\Anaconda3\lib\site-packages\sklearn\utils\estimator_checks.py", line 567, in check_estimator raise TypeError(msg) TypeError: Passing a class was deprecated in version 0.23 and isn't supported anymore from 0.24.Please pass an instance ins tead.


Ran 57 tests in 17.313s

FAILED (errors=3)

kiranshila commented 2 years ago

I am also getting these errors - any progress on this?

kiranshila commented 2 years ago

It looks like because these tests are set as skip in pytest, a directive ignored by other test runners.

kiranshila commented 2 years ago

Yeah, additionally the tests won't pass when installed with python setup.py install, it has to be installed with develop