seldonian.parse_tree.zhat_funcs.vector_Squared_Error¶
- vector_Squared_Error(model, theta, X, Y, **kwargs)¶
Calculate squared error for each observation in the dataset
- Parameters:
model – SeldonianModel instance
theta (numpy ndarray) – The model weights
X (numpy ndarray) – The features
Y (numpy ndarray) – The labels
- Returns:
vector of squared error values
- Return type:
numpy ndarray(float)