seldonian.models.objectives.Negative_Rate

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

Calculate mean negative rate for the whole sample. This has slightly different meanings depending on whether we’re in binary or multi-class setting.

Parameters:
  • model – SeldonianModel instance

  • theta (numpy ndarray) – The parameter weights

  • X (numpy ndarray) – The features

  • Y (numpy ndarray) – The labels

Returns:

Mean negative rate

Return type:

float between 0 and 1