MOAClusterer#

class capymoa.base.MOAClusterer[source]#

Bases: Clusterer

A wrapper class for using MOA (Massive Online Analysis) clusterers in CapyMOA.

Attributes: - schema: The schema representing the instances. Defaults to None. - CLI: The command-line interface (CLI) configuration for the MOA learner. - random_seed: The random seed for reproducibility. Defaults to 1. - moa_learner: The MOA learner object or class identifier.

__init__(moa_learner, schema=None, CLI=None)[source]#
cli_help()[source]#
classmethod from_params(
schema: Any = None,
params: dict[str, Any] | None = None,
random_seed: int = 1,
) → Any[source]#

Construct an instance from parameters produced by get_params.

get_clustering_result()[source]#
get_micro_clustering_result()[source]#
get_params() → dict[str, Any][source]#

Return the hyper-parameters captured from the constructor.

abstract implements_macro_clusters() → bool[source]#
abstract implements_micro_clusters() → bool[source]#
train(instance)[source]#