Skip to content

k-means should allow selecting points randomly as initialization #596

Description

@rcurtin

This also comes out of the discussion for #592. @kno10's suggestion is that we simply pick points randomly from the dataset as initial centroids.

This requires a bit of refactoring because the current initialization policy operates by setting the assignments of each point, instead of the location of each centroid. So there will need to be a little bit of thought on how exactly to handle this, but probably some template metaprogramming to handle both cases is in order here (so that a user can both write initialization policies that give initial point assignments and also initial centroids).

I will do this as I have time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions