ObjectiveFunction#
- class ObjectiveFunction(X, y, neural_network, loss)[소스]#
기반 클래스:
object
An abstract objective function. Provides methods for computing objective value and gradients for forward and backward passes.
- 매개변수:
X (ndarray) – The input data.
y (ndarray) – The target values.
neural_network (NeuralNetwork) – An instance of an quantum neural network to be used by this objective function.
loss (Loss) – A target loss function to be used in training.
Methods