pub enum DiscretizationStrategy {
Uniform,
Quantile,
KMeans,
}Expand description
Discretization strategy for KBinsDiscretizer
Variants§
Uniform
All bins have identical widths
Quantile
All bins have the same number of points
KMeans
Bins are clustered using k-means
Trait Implementations§
Source§impl Clone for DiscretizationStrategy
impl Clone for DiscretizationStrategy
Source§fn clone(&self) -> DiscretizationStrategy
fn clone(&self) -> DiscretizationStrategy
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 DiscretizationStrategy
impl Debug for DiscretizationStrategy
Source§impl PartialEq for DiscretizationStrategy
impl PartialEq for DiscretizationStrategy
impl Copy for DiscretizationStrategy
impl StructuralPartialEq for DiscretizationStrategy
Auto Trait Implementations§
impl Freeze for DiscretizationStrategy
impl RefUnwindSafe for DiscretizationStrategy
impl Send for DiscretizationStrategy
impl Sync for DiscretizationStrategy
impl Unpin for DiscretizationStrategy
impl UnwindSafe for DiscretizationStrategy
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