pub enum FeatureMatrixError {
InvalidShape {
rows: usize,
cols: usize,
},
FeatureIndexOutOfBounds {
index: usize,
max: usize,
},
SampleIndexOutOfBounds {
index: usize,
max: usize,
},
CsvError(Error),
IoError(Error),
}Expand description
Errors that can occur when working with feature matrices.
Variants§
InvalidShape
Invalid matrix shape (zero rows or columns).
FeatureIndexOutOfBounds
Feature column index out of valid range.
SampleIndexOutOfBounds
Sample row index out of valid range.
CsvError(Error)
CSV parsing error.
IoError(Error)
File I/O error.
Trait Implementations§
Source§impl Debug for FeatureMatrixError
impl Debug for FeatureMatrixError
Source§impl Display for FeatureMatrixError
impl Display for FeatureMatrixError
Source§impl Error for FeatureMatrixError
impl Error for FeatureMatrixError
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<Error> for FeatureMatrixError
impl From<Error> for FeatureMatrixError
Source§impl From<Error> for FeatureMatrixError
impl From<Error> for FeatureMatrixError
Source§impl From<FeatureMatrixError> for DataError
impl From<FeatureMatrixError> for DataError
Source§fn from(source: FeatureMatrixError) -> Self
fn from(source: FeatureMatrixError) -> Self
Converts to this type from the input type.
Source§impl From<FeatureMatrixError> for DataLoaderError
impl From<FeatureMatrixError> for DataLoaderError
Source§fn from(source: FeatureMatrixError) -> Self
fn from(source: FeatureMatrixError) -> Self
Converts to this type from the input type.
Source§impl From<FeatureMatrixError> for TreeError
impl From<FeatureMatrixError> for TreeError
Source§fn from(source: FeatureMatrixError) -> Self
fn from(source: FeatureMatrixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FeatureMatrixError
impl !RefUnwindSafe for FeatureMatrixError
impl Send for FeatureMatrixError
impl Sync for FeatureMatrixError
impl Unpin for FeatureMatrixError
impl !UnwindSafe for FeatureMatrixError
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