seldonian.parse_tree.zhat_funcs.vector_Error

vector_Error(model, theta, X, Y, **kwargs)

Calculate error (Y_hat - Y) 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 error values

Return type:

numpy ndarray(float)