inversion_ideas.base.Scaled#
- class inversion_ideas.base.Scaled(multiplier, function)#
Scaled objective function.
Attributes
Methods
__call__(model)Evaluate the objective function.
gradient(model)Evaluate the gradient of the objective function for a given model.
hessian(model)Evaluate the hessian of the objective function for a given model.
hessian_diagonal(model)Get the main diagonal of the Hessian.
info()Get information about the objective function.
set_name(value)Set name for the objective function.
Attributes#
- Scaled.n_params#
Number of model parameters.
- Scaled.name#
Name of the objective function.
Methods#
Methods documentation
- Scaled.__call__(model)#
Evaluate the objective function.
- Scaled.gradient(model)#
Evaluate the gradient of the objective function for a given model.
- Scaled.hessian(model)#
Evaluate the hessian of the objective function for a given model.
- Scaled.hessian_diagonal(model)#
Get the main diagonal of the Hessian.
- Parameters:
- model(n_params) array
Array with model values.
- Returns:
- (n_params,) array
Array containing the diagonal of the Hessian.
- Scaled.info()#
Get information about the objective function.
- Scaled.set_name(value)#
Set name for the objective function.