pub enum LinearModelError {
DataError(DataError),
ConfigurationError(ConfigurationError),
NumericalError(NumericalError),
OptimizationError(OptimizationError),
StateError(StateError),
FeatureError(FeatureError),
MatrixError(MatrixError),
CrossValidationError(CrossValidationError),
ResourceError(ResourceError),
}Expand description
Comprehensive error type for linear model operations
Variants§
DataError(DataError)
Data-related errors (input validation, preprocessing)
ConfigurationError(ConfigurationError)
Model configuration errors
NumericalError(NumericalError)
Numerical computation errors
OptimizationError(OptimizationError)
Optimization/convergence errors
StateError(StateError)
Model state errors (fitting, prediction)
FeatureError(FeatureError)
Feature-related errors
MatrixError(MatrixError)
Matrix operation errors
CrossValidationError(CrossValidationError)
Cross-validation errors
ResourceError(ResourceError)
Memory/resource errors
Implementations§
Source§impl LinearModelError
impl LinearModelError
Sourcepub fn severity(&self) -> ErrorSeverity
pub fn severity(&self) -> ErrorSeverity
Get error severity level
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Get user-friendly error message
Sourcepub fn recovery_suggestions(&self) -> Vec<String>
pub fn recovery_suggestions(&self) -> Vec<String>
Get recovery suggestions
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if error is recoverable
Trait Implementations§
Source§impl Clone for LinearModelError
impl Clone for LinearModelError
Source§fn clone(&self) -> LinearModelError
fn clone(&self) -> LinearModelError
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 moreSource§impl Debug for LinearModelError
impl Debug for LinearModelError
Source§impl Display for LinearModelError
impl Display for LinearModelError
Source§impl Error for LinearModelError
impl Error for LinearModelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LinearModelError> for SklearsError
impl From<LinearModelError> for SklearsError
Source§fn from(err: LinearModelError) -> Self
fn from(err: LinearModelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinearModelError
impl RefUnwindSafe for LinearModelError
impl Send for LinearModelError
impl Sync for LinearModelError
impl Unpin for LinearModelError
impl UnwindSafe for LinearModelError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more