seldonian.models.objectives.Positive_Rate¶
- Positive_Rate(model, theta, X, Y, **kwargs)¶
Calculate mean positive 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:param model: SeldonianModel instance
theta (numpy ndarray) – The parameter weights
X (numpy ndarray) – The features
Y (numpy ndarray) – The labels
- Returns:
Mean positive rate
- Return type:
float between 0 and 1