ObjectiveWithFisher

Trait ObjectiveWithFisher 

Source
pub trait ObjectiveWithFisher<T: Float> {
    // Required methods
    fn evaluate(&self, parameters: &[T]) -> T;
    fn gradient(&self, parameters: &[T]) -> Vec<T>;
    fn fisher_information(&self, parameters: &[T]) -> Vec<Vec<T>>;

    // Provided method
    fn hessian(&self, _parameters: &[T]) -> Option<Vec<Vec<T>>> { ... }
}
Expand description

Trait for defining objective functions with Fisher information

Required Methods§

Source

fn evaluate(&self, parameters: &[T]) -> T

Evaluate the objective function

Source

fn gradient(&self, parameters: &[T]) -> Vec<T>

Compute the gradient of the objective function

Source

fn fisher_information(&self, parameters: &[T]) -> Vec<Vec<T>>

Compute the Fisher information matrix

Provided Methods§

Source

fn hessian(&self, _parameters: &[T]) -> Option<Vec<Vec<T>>>

Optional: compute Hessian for second-order methods

Implementors§