pub enum SklearsError {
Show 30 variants
FitError(String),
PredictError(String),
TransformError(String),
InvalidInput(String),
InvalidData {
reason: String,
},
ShapeMismatch {
expected: String,
actual: String,
},
InvalidParameter {
name: String,
reason: String,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
NotFitted {
operation: String,
},
NumericalError(String),
ConvergenceError {
iterations: usize,
},
FeatureMismatch {
expected: usize,
actual: usize,
},
MissingDependency {
dependency: String,
feature: String,
},
IoError(Error),
FileError(String),
SerializationError(String),
DeserializationError(String),
NotImplemented(String),
InvalidOperation(String),
InvalidState(String),
Configuration(String),
TraitNotFound(String),
AnalysisError(String),
HardwareError(String),
ResourceAllocationError(String),
InvalidConfiguration(String),
ProcessingError(String),
ModelError(String),
ValidationError(String),
Other(String),
}Expand description
Main error type for sklears
Variants§
FitError(String)
Error during model fitting
PredictError(String)
Error during prediction
TransformError(String)
Error during data transformation
InvalidInput(String)
Invalid input data
InvalidData
Invalid data quality
ShapeMismatch
Shape mismatch between arrays
InvalidParameter
Invalid parameter value
DimensionMismatch
Dimension mismatch between arrays
NotFitted
Model not fitted
NumericalError(String)
Numerical computation error
ConvergenceError
Convergence failure
FeatureMismatch
Feature dimension mismatch
MissingDependency
Missing dependency error
IoError(Error)
IO error
FileError(String)
File operation error
SerializationError(String)
Serialization error
DeserializationError(String)
Deserialization error
NotImplemented(String)
Not implemented
InvalidOperation(String)
Invalid operation
InvalidState(String)
Invalid state error
Configuration(String)
Configuration error
TraitNotFound(String)
Trait not found
AnalysisError(String)
Analysis error
HardwareError(String)
Hardware error
ResourceAllocationError(String)
Resource allocation error
InvalidConfiguration(String)
Invalid configuration error
ProcessingError(String)
Processing error
ModelError(String)
Model error
ValidationError(String)
Validation error
Other(String)
Other errors
Trait Implementations§
Source§impl Clone for SklearsError
impl Clone for SklearsError
Source§impl Debug for SklearsError
impl Debug for SklearsError
Source§impl Display for SklearsError
impl Display for SklearsError
Source§impl Error for SklearsError
impl Error for SklearsError
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<&str> for SklearsError
impl From<&str> for SklearsError
Source§impl From<Error> for SklearsError
impl From<Error> for SklearsError
Source§impl From<Error> for SklearsError
impl From<Error> for SklearsError
Source§impl From<ShapeError> for SklearsError
impl From<ShapeError> for SklearsError
Source§fn from(error: ShapeError) -> Self
fn from(error: ShapeError) -> Self
Converts to this type from the input type.
Source§impl From<String> for SklearsError
impl From<String> for SklearsError
Source§impl StableApi for SklearsError
impl StableApi for SklearsError
Source§const STABLE_SINCE: &'static str = "0.1.0"
const STABLE_SINCE: &'static str = "0.1.0"
API version this type was stabilized in
Source§const HAS_EXPERIMENTAL_FEATURES: bool = false
const HAS_EXPERIMENTAL_FEATURES: bool = false
Whether this API has any experimental features
Auto Trait Implementations§
impl Freeze for SklearsError
impl !RefUnwindSafe for SklearsError
impl Send for SklearsError
impl Sync for SklearsError
impl Unpin for SklearsError
impl !UnwindSafe for SklearsError
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