TargetMean#

class capymoa.regressor.TargetMean[source]#

Bases: MOARegressor

Target Mean Regressor.

Maintains the mean of the target values to make predictions.

__init__(schema: Schema | None = None)[source]#

Construct Target Mean Regressor.

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

Return the hyper-parameters captured from the constructor.

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