seldonian.models.objectives.gradient_Bounded_Squared_Error

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

Analytical gradient of the bounded squared error (BSE)

Parameters:
  • model – SeldonianModel instance

  • theta (numpy ndarray) – The parameter weights

  • X (numpy ndarray) – The features

  • Y (numpy ndarray) – The labels

Returns:

d(BSE)/dtheta

Return type:

numpy ndarray