pub struct SupervisedCsvConfig { /* private fields */ }Expand description
Configuration for parsing/loading supervised CSV datasets.
Implementations§
Source§impl SupervisedCsvConfig
impl SupervisedCsvConfig
pub fn new( input_shape: Vec<usize>, target_shape: Vec<usize>, ) -> Result<Self, ModelError>
pub fn with_delimiter(self, delimiter: char) -> Result<Self, ModelError>
pub fn with_header(self, has_header: bool) -> Self
pub fn input_shape(&self) -> &[usize]
pub fn target_shape(&self) -> &[usize]
pub fn delimiter(&self) -> char
pub fn has_header(&self) -> bool
Trait Implementations§
Source§impl Clone for SupervisedCsvConfig
impl Clone for SupervisedCsvConfig
Source§fn clone(&self) -> SupervisedCsvConfig
fn clone(&self) -> SupervisedCsvConfig
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 moreSource§impl Debug for SupervisedCsvConfig
impl Debug for SupervisedCsvConfig
Source§impl PartialEq for SupervisedCsvConfig
impl PartialEq for SupervisedCsvConfig
impl StructuralPartialEq for SupervisedCsvConfig
Auto Trait Implementations§
impl Freeze for SupervisedCsvConfig
impl RefUnwindSafe for SupervisedCsvConfig
impl Send for SupervisedCsvConfig
impl Sync for SupervisedCsvConfig
impl Unpin for SupervisedCsvConfig
impl UnsafeUnpin for SupervisedCsvConfig
impl UnwindSafe for SupervisedCsvConfig
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