seldonian.models.objectives.Error_Rate

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

Calculate mean error rate over the whole sample.

Parameters:
  • model – SeldonianModel instance

  • theta (numpy ndarray) – The parameter weights

  • X (numpy ndarray) – The features

Returns:

Mean error rate

Return type:

float between 0 and 1