Trait rusty_machine::learning::optim::Optimizable
[−]
[src]
pub trait Optimizable {
type Data;
type Target;
fn compute_grad(&self, params: &[f64], data: &Self::Data, target: &Self::Target) -> (f64, Vec<f64>);
}Trait for models which can be gradient-optimized.
Associated Types
Required Methods
fn compute_grad(&self, params: &[f64], data: &Self::Data, target: &Self::Target) -> (f64, Vec<f64>)
Compute the gradient for the model.