seldonian.parse_tree.zhat_funcs.vector_Error_Rate¶
- vector_Error_Rate(model, theta, X, Y, **kwargs)¶
Calculate error rate for each observation. This is 1 - the probability of predicting the correct label.
- 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)