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

RobustSingleLinkage doesn't work #11

Closed
Phlya opened this issue Nov 14, 2015 · 1 comment
Closed

RobustSingleLinkage doesn't work #11

Phlya opened this issue Nov 14, 2015 · 1 comment

Comments

@Phlya
Copy link

Phlya commented Nov 14, 2015

OK, a bigger issue now... I wanted to play a little with robust single linkage, but seems like it doesn't work:

clusterer = hdbscan.RobustSingleLinkage(cut=0.125, k=7)
cluster_labels = clusterer.fit_predict(data)

And I get this:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-87-39b93d0a5ec8> in <module>()
----> 1 clusterer = hdbscan.RobustSingleLinkage(cut=0.125, k=7)
      2 cluster_labels = clusterer.fit_predict(data)

AttributeError: 'module' object has no attribute 'RobustSingleLinkage'

Am I doing something wrong?

@lmcinnes
Copy link
Collaborator

That's just and accident; I really haven't been playing with RobustSingleLinkage much, so I missed some obvious imports in init.py. Fixed now, and if you want to get it working just change the init.py in the hdbscan install to be:

from .hdbscan_ import HDBSCAN, hdbscan
from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage

Good catch again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants