ObjectiveFunction.gradient¶ abstract ObjectiveFunction.gradient(weights)[source]¶ Computes gradients of this objective function given weights. Parameters weights (ndarray) – an array of weights to be used in the objective function. Return type ndarray Returns Gradients of the function.