Skip to content

average utility in pairwise module #743

@mblondel

Description

@mblondel

We should add an average utility function which would work as below:

average(X, metric="euclidean") => return mean
average(X, metric="mahattan") => return median

This will be useful in nearest-centroid or in k-means as the averaging operator used in these algorithms depends on the metric used (K-means with manhattan distance is called "k-medians").

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