MeanFunctionEngine.fit#

MeanFunctionEngine.fit(features, target)[source]#

Fit the learner and return a MeanPredictor.

Parameters:
  • features (NDArray[double]) – Design matrix, (n, k).

  • target (NDArray[double]) – Response, (n,), aligned with the rows of features.

Return type:

MeanPredictor

Returns:

A fitted predictor. The models that call this do not check the return against the MeanPredictor protocol.