fit_predict

PLSCAN.fit_predict(X, y=None, **kwargs)

Perform clustering on X and returns cluster labels.

Parameters:
  • X (array-like of shape (n_samples, n_features)) – Input data.

  • y (Ignored) – Not used, present for API consistency by convention.

  • **kwargs (dict) –

    Arguments to be passed to fit.

    Added in version 1.4.

Returns:

labels (ndarray of shape (n_samples,), dtype=np.int64) – Cluster labels.