ClusTree#

class capymoa.cluster.ClusTree[source]#

Bases: MOAClusterer

ClusTree clustering algorithm without Macro-clustering.

__init__(
schema: Schema | None = None,
horizon: int = 1000,
max_height: int = 8,
breadth_first_strategy: bool = False,
)[source]#

Clustream clusterer.

Parameters:
  • schema – The schema of the stream

  • horizon – The size of the time window

  • max_height – The maximum height of the tree

  • breadth_first_strategy – Whether to use breadth-first strategy

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.

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