Skip to content

MiniBatchRegressor

A regressor that can operate on mini-batches.

Methods

learn_many

Update the model with a mini-batch of features X and real-valued targets y.

Parameters

  • X ('pd.DataFrame')
  • y ('pd.Series')

Returns

MiniBatchRegressor: self

learn_one

Fits to a set of features x and a real-valued target y.

Parameters

  • x (dict)
  • y (numbers.Number)

Returns

Regressor: self

predict_many

Predict the outcome for each given sample.

Parameters

  • X ('pd.DataFrame')

Returns

pd.Series: The predicted outcomes.

predict_one

Predict the output of features x.

Parameters

  • x (dict)

Returns

Number: The prediction.