pub struct ColumnTypeDetector { /* private fields */ }Expand description
Column type detector for automatic preprocessing
Implementations§
Source§impl ColumnTypeDetector
impl ColumnTypeDetector
Sourcepub fn categorical_threshold(self, threshold: f64) -> Self
pub fn categorical_threshold(self, threshold: f64) -> Self
Set categorical threshold
Sourcepub fn date_pattern_detection(self, enable: bool) -> Self
pub fn date_pattern_detection(self, enable: bool) -> Self
Enable/disable date pattern detection
Sourcepub fn text_detection(self, enable: bool) -> Self
pub fn text_detection(self, enable: bool) -> Self
Enable/disable text detection
Sourcepub fn detect_types(&self, x: &ArrayView2<'_, Float>) -> Vec<ColumnType>
pub fn detect_types(&self, x: &ArrayView2<'_, Float>) -> Vec<ColumnType>
Detect column types
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnTypeDetector
impl RefUnwindSafe for ColumnTypeDetector
impl Send for ColumnTypeDetector
impl Sync for ColumnTypeDetector
impl Unpin for ColumnTypeDetector
impl UnwindSafe for ColumnTypeDetector
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