pub struct CsvConfig {
pub has_header: bool,
pub feature_cols: Vec<usize>,
pub target_cols: Vec<usize>,
pub delimiter: u8,
}Expand description
Configuration for loading a CSV file.
Fields§
§has_header: boolWhether the first row is a header (to be skipped).
feature_cols: Vec<usize>Column indices to use as features.
target_cols: Vec<usize>Column indices to use as targets.
delimiter: u8Delimiter character (default: ,).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CsvConfig
impl RefUnwindSafe for CsvConfig
impl Send for CsvConfig
impl Sync for CsvConfig
impl Unpin for CsvConfig
impl UnsafeUnpin for CsvConfig
impl UnwindSafe for CsvConfig
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