NoChange#

class capymoa.classifier.NoChange[source]#

Bases: MOAClassifier

NoChange classifier.

Always predicts the last class seen.

Example usages:

>>> from capymoa.datasets import ElectricityTiny
>>> from capymoa.classifier import NoChange
>>> from capymoa.evaluation import prequential_evaluation
>>> stream = ElectricityTiny()
>>> schema = stream.get_schema()
>>> learner = NoChange(schema)
>>> results = prequential_evaluation(stream, learner, max_instances=1000)
>>> results["cumulative"].accuracy()
85.9
__init__(schema: Schema | None = None)[source]#

NoChange class classifier.

Parameters:

schema – The schema of the stream.

CLI_help()[source]#
predict(instance)[source]#
predict_proba(instance)[source]#
train(instance)[source]#