seldonian.parse_tree.zhat_funcs.vector_Accuracy¶
- vector_Accuracy(model, theta, X, Y, **kwargs)¶
Calculate probabilistic accuracy for each observation. This is the probability of predicting the correct label, and equivalent to 1 - error rate.
- Parameters:
model – SeldonianModel instance
theta (numpy ndarray) – The model weights
X (numpy ndarray) – The features
Y (numpy ndarray) – The labels
- Returns:
Error rate for each observation
- Return type:
numpy ndarray(float between 0 and 1)