A classifier that makes its predictions by choosing the class who has a centroid the nearest to the point. For each class, an arbitrary number of centroids can be set. This centroids are calculated using k-Means over each class sub-dataset.

NCMC_Classifier(centroids_num = 3, ...)

Arguments

centroids_num

If it is a list, it must have the same size as the number of classes. In this case, i-th item will be the number of centroids to take in the i-th class. If it is an int, every class will have the same number of centroids.

...

Additional arguments for Scikit-Learn K-Means.

Value

The NCMC classifier, structured as a named list.