Skip to content

Add API for user defined distance function in k-means #1188

Closed
@tebeka

Description

@tebeka

We had a case where we wanted to use Levenshtein distance instead of the usual euclidean_distances. We ended monkey-patching the cluster module.

I think it'll be nice to add another parameter to KMeans class which is a user defined distance function. If it's not defined then the code will default to usual euclidean_distances.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions