Shrinkage

shrinkage::SolverStep

Shrinkage for Rust · rust · 0.3.0

pub struct SolverStep<'a>

A borrowed optimization state, valid only during an observer callback.

Coefficients and the intercept use the solver's optimization scale. Returned fits back-transform these parameters using their preprocessing metadata. Iteration counts use the selected solver's documented units. Inner callbacks count IRLS sweeps, Gaussian hybrid block visits, or binomial hybrid quadratic iterations. Rejected line-search trials are never emitted.

Fields

coefficients

pub coefficients: &'a [f64]

Optimization-scale coefficients, without an allocation or copy.

intercept

pub intercept: f64

Optimization-scale unpenalized intercept.

iteration

pub iteration: usize

Solver iteration count at this state.

kind

pub kind: StepKind

Operation that produced this state.

Implementation of Clone

impl<'a> Clone for SolverStep<'a>

clone

fn clone(&self) -> Self

Implementation of Copy

impl<'a> Copy for SolverStep<'a>

Implementation of Debug

impl<'a> Debug for SolverStep<'a>

fmt

fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Implementation of Freeze

impl<'a> Freeze for SolverStep<'a>

Implementation of RefUnwindSafe

impl<'a> RefUnwindSafe for SolverStep<'a>

Implementation of Send

impl<'a> Send for SolverStep<'a>

Implementation of Sync

impl<'a> Sync for SolverStep<'a>

Implementation of Unpin

impl<'a> Unpin for SolverStep<'a>

Implementation of UnsafeUnpin

impl<'a> UnsafeUnpin for SolverStep<'a>

Implementation of UnwindSafe

impl<'a> UnwindSafe for SolverStep<'a>

Implementation of Any

impl<T> Any for T where T: 'static + ?Sized

Implementation of Borrow

impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut

impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef

impl<T> ByRef<T> for T

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of CloneToUninit

impl<T> CloneToUninit for T where T: Clone

Implementation of From

impl<T> From<T> for T

Implementation of Imply

impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into

impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither

impl<T> IntoEither for T

Implementation of Pointable

impl<T> Pointable for T

Implementation of Read

impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same

impl<T> Same for T

Implementation of SupersetOf

impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToOwned

impl<T> ToOwned for T where T: Clone

Implementation of TryFrom

impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto

impl<T, U> TryInto<U> for T where U: TryFrom<T>