pub struct NaturalGradientResult<T: Float> {
pub parameters: Vec<T>,
pub objective_value: T,
pub gradient_norm: T,
pub iterations: usize,
pub converged: bool,
pub trajectory: Option<Vec<Vec<T>>>,
}Expand description
Results from natural gradient optimization
Fields§
§parameters: Vec<T>Final parameter values
objective_value: TFinal objective function value
gradient_norm: TFinal gradient norm
iterations: usizeNumber of iterations performed
converged: boolConvergence status
trajectory: Option<Vec<Vec<T>>>Optimization trajectory (if requested)
Trait Implementations§
Source§impl<T: Clone + Float> Clone for NaturalGradientResult<T>
impl<T: Clone + Float> Clone for NaturalGradientResult<T>
Source§fn clone(&self) -> NaturalGradientResult<T>
fn clone(&self) -> NaturalGradientResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for NaturalGradientResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for NaturalGradientResult<T>where
T: RefUnwindSafe,
impl<T> Send for NaturalGradientResult<T>where
T: Send,
impl<T> Sync for NaturalGradientResult<T>where
T: Sync,
impl<T> Unpin for NaturalGradientResult<T>where
T: Unpin,
impl<T> UnwindSafe for NaturalGradientResult<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more