KMeansPlain#

class KMeansPlain#

A plaintext representation of a KMeans model.

set_centroids(self: pyhelayers.KMeansPlain, c: numpy.ndarray[numpy.float64]) None#

Set the Centroids. The input argument is a matrix of shape [num_centers,num_features], where the i’th row specifies the i’th centroid.

Parameters:

c (numpy array of doubles) – The centroid matrix.