seldonian.models.objectives.Mean_Squared_Error

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

Calculate mean squared error 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 squared error

Return type:

float