pub struct HashEncoder<State = Untrained> { /* private fields */ }Expand description
Hash encoder for categorical features using feature hashing
Implementations§
Source§impl HashEncoder<Untrained>
impl HashEncoder<Untrained>
Sourcepub fn n_components(self, n_components: usize) -> Self
pub fn n_components(self, n_components: usize) -> Self
Set the number of hash components
Sourcepub fn hash_method(self, method: HashMethod) -> Self
pub fn hash_method(self, method: HashMethod) -> Self
Set the hash method
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for HashEncoder<State>
impl<State> RefUnwindSafe for HashEncoder<State>where
State: RefUnwindSafe,
impl<State> Send for HashEncoder<State>where
State: Send,
impl<State> Sync for HashEncoder<State>where
State: Sync,
impl<State> Unpin for HashEncoder<State>where
State: Unpin,
impl<State> UnwindSafe for HashEncoder<State>where
State: UnwindSafe,
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