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.82k stars 507 forks source link

test error #574

Open du666888999 opened 2 years ago

du666888999 commented 2 years ago

............................EEE.EE..........EE..........E

ERROR: hdbscan.tests.test_hdbscan.test_condensed_tree_plot

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 376, in test_condensed_tree_plot if_matplotlib(clusterer.condensedtree.plot)( File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 82, in run_test pytest.skip("Matplotlib not available.") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/_pytest/outcomes.py", line 175, in skip raise Skipped(msg=reason, allow_module_level=allow_module_level) Skipped: Matplotlib not available.

====================================================================== ERROR: hdbscan.tests.test_hdbscan.test_single_linkage_tree_plot

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 389, in test_single_linkage_tree_plot if_matplotlib(clusterer.single_linkagetree.plot)(cmap="Reds") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 82, in run_test pytest.skip("Matplotlib not available.") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/_pytest/outcomes.py", line 175, in skip raise Skipped(msg=reason, allow_module_level=allow_module_level) Skipped: Matplotlib not available.

====================================================================== ERROR: hdbscan.tests.test_hdbscan.test_min_span_tree_plot

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 397, in test_min_span_tree_plot if_matplotlib(clusterer.minimum_spanningtree.plot)(edge_cmap="Reds") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 82, in run_test pytest.skip("Matplotlib not available.") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/_pytest/outcomes.py", line 175, in skip raise Skipped(msg=reason, allow_module_level=allow_module_level) Skipped: Matplotlib not available.

====================================================================== ERROR: hdbscan.tests.test_hdbscan.test_tree_pandas_output_formats

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 428, in test_tree_pandas_output_formats if_pandas(clusterer.condensedtree.to_pandas)() File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 97, in run_test pytest.skip("Pandas not available.") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/_pytest/outcomes.py", line 175, in skip raise Skipped(msg=reason, allow_module_level=allow_module_level) Skipped: Pandas not available.

====================================================================== ERROR: hdbscan.tests.test_hdbscan.test_tree_networkx_output_formats

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 436, in test_tree_networkx_output_formats if_networkx(clusterer.condensedtree.to_networkx)() File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 112, in run_test pytest.skip("NetworkX not available.") File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/_pytest/outcomes.py", line 175, in skip raise Skipped(msg=reason, allow_module_level=allow_module_level) Skipped: NetworkX not available.

====================================================================== ERROR: hdbscan.tests.test_hdbscan.test_hdbscan_is_sklearn_estimator

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_hdbscan.py", line 646, in test_hdbscan_is_sklearn_estimator check_estimator(HDBSCAN) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/sklearn/utils/estimator_checks.py", line 610, 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 instead.

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

Traceback (most recent call last): File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/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 "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/hdbscan/tests/test_rsl.py", line 197, in test_rsl_is_sklearn_estimator check_estimator(RobustSingleLinkage) File "/home/dh/anaconda3/envs/pointcloud/lib/python3.8/site-packages/sklearn/utils/estimator_checks.py", line 610, 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 instead.


Ran 57 tests in 1.593s

FAILED (errors=8)