pub struct QuantileTransformer {
pub n_quantiles: usize,
pub output_distribution: OutputDistribution,
/* private fields */
}Expand description
Quantile Transformer - transform features to follow a uniform or normal distribution
Fields§
§n_quantiles: usize§output_distribution: OutputDistributionImplementations§
Source§impl QuantileTransformer
impl QuantileTransformer
pub fn new() -> Self
pub fn n_quantiles(self, n: usize) -> Self
pub fn output_distribution(self, od: OutputDistribution) -> Self
pub fn fit(&mut self, x: &Tensor)
pub fn transform(&self, x: &Tensor) -> Tensor
pub fn fit_transform(&mut self, x: &Tensor) -> Tensor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantileTransformer
impl RefUnwindSafe for QuantileTransformer
impl Send for QuantileTransformer
impl Sync for QuantileTransformer
impl Unpin for QuantileTransformer
impl UnwindSafe for QuantileTransformer
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