Skip to content

Can't seem to get cosine metric working. #69

@rn123

Description

@rn123

hdbscan==0.8.2
Can't seem to get cosine metric working:

hdbscan.hdbscan_.DistanceMetric.get_metric('cosine')
<hdbscan.dist_metrics.ArccosDistance at 0x7f83b22a8c08>
So the metric is there, but:

clusterer = hdbscan.HDBSCAN(min_cluster_size=5, metric='cosine')
labels = clusterer.fit_predict(np.array(data_d2v))

yields:

ValueError: Unrecognized metric 'cosine'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions