classix.CLASSIX.predict

CLASSIX.predict(data, memory=False)[source]

Allocate the data to their nearest clusters.

  • datanumpy.ndarray

    The ndarray-like input of shape (n_samples,)

  • memory : bool, default=False

    • True: default, use precomputation is triggered to speedup the query

    • False: a memory efficient way to perform query

Returns

labelsnumpy.ndarray

The predicted clustering labels.