Classifier#

class capymoa.base.Classifier[source]#

Bases: ABC

Abstract base class for machine learning classifiers.

Attributes: - schema: The schema representing the instances. Defaults to None. - random_seed: The random seed for reproducibility. Defaults to 1.

__init__(schema: Schema, random_seed=1)[source]#
abstract train(instance: LabeledInstance)[source]#
abstract predict(instance: Instance) int | None[source]#
abstract predict_proba(
instance: Instance,
) ndarray[Any, dtype[float64]][source]#