pub struct RobustScaler {
pub with_centering: bool,
pub with_scaling: bool,
pub quantile_range: (f32, f32),
/* private fields */
}Expand description
Robust Scaler - scales using statistics robust to outliers Uses median and IQR instead of mean and std
Fields§
§with_centering: bool§with_scaling: bool§quantile_range: (f32, f32)Implementations§
Source§impl RobustScaler
impl RobustScaler
pub fn new() -> Self
pub fn with_centering(self, c: bool) -> Self
pub fn with_scaling(self, s: bool) -> Self
pub fn quantile_range(self, low: f32, high: f32) -> Self
pub fn fit(&mut self, x: &Tensor)
pub fn transform(&self, x: &Tensor) -> Tensor
pub fn fit_transform(&mut self, x: &Tensor) -> Tensor
pub fn inverse_transform(&self, x: &Tensor) -> Tensor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RobustScaler
impl RefUnwindSafe for RobustScaler
impl Send for RobustScaler
impl Sync for RobustScaler
impl Unpin for RobustScaler
impl UnwindSafe for RobustScaler
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