seldonian.models.objectives.binary_logistic_loss

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

Calculate mean logistic loss over all data points for binary classification

Parameters:
  • model – SeldonianModel instance

  • theta (numpy ndarray) – The parameter weights

  • X (numpy ndarray) – The features

  • Y (numpy ndarray) – The labels

Returns:

mean logistic loss

Return type:

float