Learner Interfaces#

CapyMOA defines different interfaces for learners performing different machine learning tasks.

class capymoa.base.Classifier[source]#

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]#
class capymoa.base.Regressor[source]#
__init__(schema=None, random_seed=1)[source]#
abstract train(instance: RegressionInstance)[source]#
abstract predict(instance: RegressionInstance) float64[source]#
class capymoa.base.ClassifierSSL[source]#
__init__(schema=None, random_seed=1)[source]#
abstract train_on_unlabeled(instance)[source]#
abstract predict(instance: Instance) int | None[source]#
abstract predict_proba(
instance: Instance,
) ndarray[Any, dtype[float64]][source]#
abstract train(instance: LabeledInstance)[source]#