pub trait PrimalProblem: ProblemBase {
// Required methods
fn loss(&self, i: usize, ti: f64) -> f64;
fn d_loss(&self, i: usize, ti: f64) -> f64;
fn d2_loss(&self, i: usize, ti: f64) -> f64;
// Provided method
fn objective(&self, status: &Status) -> f64 { ... }
}
Expand description
Base for the definition of a primal training problem