pub struct OneHotEncoding { /* private fields */ }Implementations§
Source§impl OneHotEncoding
impl OneHotEncoding
Sourcepub fn new(input_column: NDArray<f64>) -> Result<OneHotEncoding, String>
pub fn new(input_column: NDArray<f64>) -> Result<OneHotEncoding, String>
Create new instance of one hot encoding
Sourcepub fn num_samples(&self) -> f64
pub fn num_samples(&self) -> f64
Get number of samples in one hot encoding
Auto Trait Implementations§
impl Freeze for OneHotEncoding
impl RefUnwindSafe for OneHotEncoding
impl Send for OneHotEncoding
impl Sync for OneHotEncoding
impl Unpin for OneHotEncoding
impl UnwindSafe for OneHotEncoding
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