amazon-denseclus icon indicating copy to clipboard operation
amazon-denseclus copied to clipboard

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

Open porygonseverywhere opened this issue 5 months ago • 0 comments

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)

porygonseverywhere avatar Sep 16 '24 14:09 porygonseverywhere