Trait rusty_machine::learning::optim::Optimizable
[−]
[src]
pub trait Optimizable {
type Inputs;
type Targets;
fn compute_grad(&self,
params: &[f64],
inputs: &Self::Inputs,
targets: &Self::Targets)
-> (f64, Vec<f64>);
}Trait for models which can be gradient-optimized.
Associated Types
Required Methods
fn compute_grad(&self,
params: &[f64],
inputs: &Self::Inputs,
targets: &Self::Targets)
-> (f64, Vec<f64>)
params: &[f64],
inputs: &Self::Inputs,
targets: &Self::Targets)
-> (f64, Vec<f64>)
Compute the gradient for the model.
Implementors
impl Optimizable for LinRegressorimpl Optimizable for BaseLogisticRegressorimpl<'a, T: Criterion> Optimizable for BaseNeuralNet<'a, T>