Skip to content

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

Description

@porygonseverywhere

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions