seldonian.models.objectives.Mean_Error

Mean_Error(model, theta, X, Y, **kwargs)

Calculate mean error (y_hat-y) over the whole sample

Parameters:
  • model – SeldonianModel instance

  • theta (numpy ndarray) – The parameter weights

  • X (numpy ndarray) – The features

  • Y (numpy ndarray) – The labels

Returns:

Sample mean error

Return type:

float