pub enum DataLoaderError {
IoError(Error),
CsvError(Error),
JsonError(Error),
DataError(DataError),
FeatureMatrixError(FeatureMatrixError),
UnsupportedFormat {
format: String,
},
ParseError {
field: String,
value: String,
message: String,
},
ValidationError(String),
MissingColumn(String),
InvalidFile(String),
PreprocessingError(String),
ParquetError(ParquetError),
}Expand description
Re-exported data loading utilities.
Provides dataset ingestion from multiple file formats with options for schema inference, type conversion, and data splitting. Errors that can occur during data loading operations.
This error type covers all failure modes: file I/O, parsing, validation, and preprocessing errors.
Variants§
IoError(Error)
File system I/O error.
CsvError(Error)
CSV parsing error.
JsonError(Error)
JSON deserialization error.
DataError(DataError)
Data validation error (shape, NaN values, etc.).
FeatureMatrixError(FeatureMatrixError)
Feature matrix construction error.
UnsupportedFormat
Unsupported file format.
ParseError
Value parsing error with context.
ValidationError(String)
Data validation error with custom message.
MissingColumn(String)
Requested column not found in data.
InvalidFile(String)
File format or structure is invalid.
PreprocessingError(String)
Categorical encoding or preprocessing failure.
ParquetError(ParquetError)
Parquet file reading error.
Trait Implementations§
Source§impl Debug for DataLoaderError
impl Debug for DataLoaderError
Source§impl Display for DataLoaderError
impl Display for DataLoaderError
Source§impl Error for DataLoaderError
impl Error for DataLoaderError
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<DataError> for DataLoaderError
impl From<DataError> for DataLoaderError
Source§impl From<DataLoaderError> for GBRTError
impl From<DataLoaderError> for GBRTError
Source§fn from(source: DataLoaderError) -> Self
fn from(source: DataLoaderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DataLoaderError
impl From<Error> for DataLoaderError
Source§impl From<Error> for DataLoaderError
impl From<Error> for DataLoaderError
Source§impl From<Error> for DataLoaderError
impl From<Error> for DataLoaderError
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<ParquetError> for DataLoaderError
impl From<ParquetError> for DataLoaderError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataLoaderError
impl !RefUnwindSafe for DataLoaderError
impl Send for DataLoaderError
impl Sync for DataLoaderError
impl Unpin for DataLoaderError
impl !UnwindSafe for DataLoaderError
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