NoChange#

class capymoa.regressor.NoChange[source]#

Bases: Regressor

No Change regressor.

Predict the previous target value. Outputs 0 prior to seeing any data.

__init__(schema=None)[source]#

Construct No Change Regressor.

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_params() → dict[str, Any][source]#

Return the hyper-parameters captured from the constructor.

predict(instance: RegressionInstance) → float64[source]#
train(instance: RegressionInstance)[source]#