paraqeet.differentiable.Differentiable#
- class paraqeet.differentiable.Differentiable#
Bases:
ABCAn abstract class for differentiable models.
Subclasses must implement the value_and_gradient() method which would return the gradient of the model.
- __init__()#
Methods
__init__()get_value_and_gradient(times)Calculate the gradient of the model.
- abstract get_value_and_gradient(times)#
Calculate the gradient of the model.
- Returns:
The value and the gradient of the model.
- Return type:
tuple[Array, Array] | tuple[float, Array]
- Parameters:
times (Array)