Skip to content

River2SKLClusterer

Compatibility layer from River to scikit-learn for clustering.

Parameters

Methods

fit

Fits to an entire dataset contained in memory.

Parameters

  • X
  • y — defaults to None

Returns

self

fit_predict

Perform clustering on X and returns cluster labels.

Parameters

  • X
  • y — defaults to None

Returns

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

get_metadata_routing

Get metadata routing of this object.

Please check :ref:User Guide <metadata_routing> on how the routing mechanism works.

Returns

MetadataRequest

get_params

Get parameters for this estimator.

Parameters

  • deep — defaults to True

Returns

dict

partial_fit

Fits incrementally on a portion of a dataset.

Parameters

  • X
  • y

Returns

self

predict

Predicts the target of an entire dataset contained in memory.

Parameters

  • X

Returns

Transformed output.

set_params

Set the parameters of this estimator.

The method works on simple estimators as well as on nested objects (such as :class:~sklearn.pipeline.Pipeline). The latter have parameters of the form <component>__<parameter> so that it's possible to update each component of a nested object.

Parameters

  • params

Returns

estimator instance