classix.CLASSIX.fit_transform

CLASSIX.fit_transform(data)[source]

Cluster the data and return the associated cluster labels.

Parameters

datanumpy.ndarray

The ndarray-like input of shape (n_samples,)

Returns

labelsnumpy.ndarray

Index of the cluster each sample belongs to.