pub enum DataErrorKind {
EmptyData,
DimensionMismatch {
expected: Vec<usize>,
actual: Vec<usize>,
},
InvalidValues {
count: usize,
total: usize,
},
MissingTargets,
InsufficientData {
required: usize,
available: usize,
},
IncompatibleDataType {
expected: String,
actual: String,
},
DataRangeError {
min_required: f64,
actual_min: f64,
},
}Variants§
EmptyData
Empty dataset
DimensionMismatch
Mismatched dimensions
InvalidValues
Invalid data values (NaN, infinity)
MissingTargets
Missing target values
InsufficientData
Insufficient data for operation
IncompatibleDataType
Data type incompatibility
DataRangeError
Data range issues (e.g., for Box-Cox transformation)
Trait Implementations§
Source§impl Clone for DataErrorKind
impl Clone for DataErrorKind
Source§fn clone(&self) -> DataErrorKind
fn clone(&self) -> DataErrorKind
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 moreAuto Trait Implementations§
impl Freeze for DataErrorKind
impl RefUnwindSafe for DataErrorKind
impl Send for DataErrorKind
impl Sync for DataErrorKind
impl Unpin for DataErrorKind
impl UnwindSafe for DataErrorKind
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