- class ObjectiveFunction(X, y, neural_network, loss)¶
An abstract objective function. Provides methods for computing objective value and gradients for forward and backward passes.
Computes gradients of this objective function given weights.
Computes the value of this objective function given weights.