seldonian.parse_tree.zhat_funcs.vector_True_Positive_Rate¶
- vector_True_Positive_Rate(model, theta, X, Y, **kwargs)¶
Calculate true positive rate for each observation. Meaning depends on whether binary or multi-class classification.
- Parameters:
model – SeldonianModel instance
theta (numpy ndarray) – The model weights
X (numpy ndarray) – The features
Y (numpy ndarray) – The labels
- Returns:
True positive rate for each observation
- Return type:
numpy ndarray(float between 0 and 1)