sklearn_clustering

class SkLearnClustererProtocol(*args, **kwds)[source]

Bases: typing_extensions.Protocol

Only used for type hints, do not instantiate

fit(x: numpy.ndarray)
labels_: numpy.ndarray
__init__(*args, **kwargs)
class SkLearnEuclideanClusterer(clusterer: sensai.clustering.sklearn_clustering.SkLearnClustererProtocol, noise_label=- 1, min_cluster_size: Optional[int] = None, max_cluster_size: Optional[int] = None)[source]

Bases: sensai.clustering.clustering_base.EuclideanClusterer

Wrapper around an sklearn-type clustering algorithm

Parameters
  • clusterer – a clusterer object compatible the sklearn API

  • noise_label – label that is associated with the noise cluster or None

  • min_cluster_size – if not None, clusters below this size will be labeled as noise

  • max_cluster_size – if not None, clusters above this size will be labeled as noise

__init__(clusterer: sensai.clustering.sklearn_clustering.SkLearnClustererProtocol, noise_label=- 1, min_cluster_size: Optional[int] = None, max_cluster_size: Optional[int] = None)