#[non_exhaustive]pub enum ScryLearnError {
EmptyDataset,
InvalidData(String),
InvalidColumn(String),
ShapeMismatch {
expected: usize,
got: usize,
},
NotFitted,
InvalidParameter(String),
ConvergenceFailure {
iterations: usize,
tolerance: f64,
},
Io(Error),
Csv(String),
InvalidFeatureIndex(usize),
}Expand description
Errors produced by scry-learn operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyDataset
The dataset contains no samples.
InvalidData(String)
The input data contains NaN, Inf, or other non-finite values.
InvalidColumn(String)
A referenced column does not exist.
ShapeMismatch
Feature matrix dimensions do not match what the model expects.
NotFitted
predict() or transform() called before fit().
InvalidParameter(String)
An invalid hyperparameter was supplied.
ConvergenceFailure
No convergence within the iteration limit.
Io(Error)
I/O error during file operations.
Csv(String)
CSV parsing error.
InvalidFeatureIndex(usize)
A referenced feature index is out of bounds.
Trait Implementations§
Source§impl Debug for ScryLearnError
impl Debug for ScryLearnError
Source§impl Display for ScryLearnError
impl Display for ScryLearnError
Source§impl Error for ScryLearnError
impl Error for ScryLearnError
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()
Auto Trait Implementations§
impl Freeze for ScryLearnError
impl !RefUnwindSafe for ScryLearnError
impl Send for ScryLearnError
impl Sync for ScryLearnError
impl Unpin for ScryLearnError
impl UnsafeUnpin for ScryLearnError
impl !UnwindSafe for ScryLearnError
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> 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