pub enum ModelOutcome {
Stepped(Tensor, usize),
Converged(Tensor, usize),
}Expand description
Outcomes of an optimiser step for methods such as LBFGS
Variants§
Stepped(Tensor, usize)
The model took a step and the loss decreased contains next loss and the number of func evals
Converged(Tensor, usize)
The model has converged and the loss has not changed contains loss and the number of func evals
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelOutcome
impl !RefUnwindSafe for ModelOutcome
impl Send for ModelOutcome
impl Sync for ModelOutcome
impl Unpin for ModelOutcome
impl !UnwindSafe for ModelOutcome
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