Shrinkage

shrinkage::FitError

Shrinkage for Rust · rust · 0.3.0

pub enum FitError<E = std::convert::Infallible>

Input, numerical, or backend failure. Backend errors retain their type.

The default source type is Infallible, used by prediction and in-memory matrix backends. Optimization iteration limits are reported in the fitted result.

Variants

Backend

Backend { operation: &'static str, source: E }

A matrix backend failed while computing statistics or a design product.

operation

operation: &'static str

Operation that requested the backend capability.

source

source: E

Original backend error.

InvalidInput

InvalidInput { message: String }

Invalid data, dimensions, options, or backend-provided statistics.

message

message: String

Description of the invalid input, including its location when available.

LineSearchFailure

LineSearchFailure { iteration: usize, step: f64 }

Backtracking could not establish the solver's acceptance condition.

iteration

iteration: usize

Iteration whose trial steps were rejected.

step

step: f64

Last attempted step size.

NumericalFailure

NumericalFailure { operation: &'static str, iteration: usize }

Arithmetic produced a nonfinite value from finite inputs.

iteration

iteration: usize

Iteration during which the failure occurred; zero denotes initialization.

operation

operation: &'static str

Operation that encountered the nonfinite value.

UnsupportedCombination

UnsupportedCombination { solver: &'static str, reason: String, suggestion: &'static str }

The selected solver cannot support a component or stopping rule.

reason

reason: String

Missing capability or incompatible selection.

solver

solver: &'static str

Solver whose requirements were not met.

suggestion

suggestion: &'static str

A supported alternative or the capability needed to proceed.

Inherent implementation

impl<E> FitError<E>

Implementation of Debug

impl<E: core::fmt::Debug> Debug for FitError<E>

fmt

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

Implementation of Display

impl<E: fmt::Display> Display for FitError<E>

fmt

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

Implementation of Error

impl<E: Error + 'static> Error for FitError<E>

source

fn source(&self) -> Option<&(dyn Error + 'static)>

Implementation of From

impl<E> From<FitError<E>> for CrossValidationError<E>

Implementation of From

impl<E> From<NumericalFailure> for FitError<E>

from

fn from(error: NumericalFailure) -> Self

Implementation of Freeze

impl<E> Freeze for FitError<E> where E: Freeze

Implementation of RefUnwindSafe

impl<E> RefUnwindSafe for FitError<E> where E: RefUnwindSafe

Implementation of Send

impl<E> Send for FitError<E> where E: Send

Implementation of Sync

impl<E> Sync for FitError<E> where E: Sync

Implementation of Unpin

impl<E> Unpin for FitError<E> where E: Unpin

Implementation of UnsafeUnpin

impl<E> UnsafeUnpin for FitError<E> where E: UnsafeUnpin

Implementation of UnwindSafe

impl<E> UnwindSafe for FitError<E> where E: UnwindSafe

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 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 ToString

impl<T> ToString for T where T: Display + ?Sized

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>