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

TypeError: DenseClus.__init__() got an unexpected keyword argument 'hdbscan_params' #145

Open
porygonseverywhere opened this issue Sep 16, 2024 · 0 comments

Comments

@porygonseverywhere
Copy link

porygonseverywhere commented Sep 16, 2024

Hello! New to the module but super impressed!

Just attempting to follow along on the NB example and received the error, seemingly not recognizing the hdbscan parameter dictionary. Seems odd because I see it available in the latest release so unsure if it was a "me" problem or not.

Cheers!

SEED = 42
np.random.seed(SEED)  # set the random seed as best we can

hdbscan_parameters = {"cluster_selection_method": "leaf"}

clf = DenseClus(
    random_state=SEED,
    umap_combine_method="intersection_union_mapper",
    hdbscan_params=hdbscan_parameters,
)

clf.fit(test_df)

print(sys.version) -- python 3.12.3 (main, Apr  9 2024, 16:54:45)
amazon-denseclus in /Users/porygon/.venv/lib/python3.12/site-packages (0.0.9)
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

1 participant