inversion_ideas.base.Scaled#
- class inversion_ideas.base.Scaled(multiplier, function)#
Scaled objective function.
Attributes
Methods
__call__(model)Evaluate the objective function for a given model.
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 for a given model.
- 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.
- Parameters:
- Returns:
- (
n_params,n_params)arrayorLinearOperator 2D array or
LinearOperatorthat represents the Hessian matrix of the objective funciton, or an approximated version of it.
- (
- Scaled.hessian_diagonal(model)#
Get the main diagonal of the Hessian.
- Scaled.info()#
Get information about the objective function.
- Scaled.set_name(value)#
Set name for the objective function.