pub enum FeatureGroup {
Identity(IdentityFeatureGroup),
Normalized(NormalizedFeatureGroup),
OneHotEncoded(OneHotEncodedFeatureGroup),
BagOfWords(BagOfWordsFeatureGroup),
WordEmbedding(WordEmbeddingFeatureGroup),
BagOfWordsCosineSimilarity(BagOfWordsCosineSimilarityFeatureGroup),
}
Expand description
The FeatureGroup
struct describes how to transform one or more columns from the input table to one or more columns in the output features.
Variants§
Identity(IdentityFeatureGroup)
Normalized(NormalizedFeatureGroup)
OneHotEncoded(OneHotEncodedFeatureGroup)
BagOfWords(BagOfWordsFeatureGroup)
WordEmbedding(WordEmbeddingFeatureGroup)
BagOfWordsCosineSimilarity(BagOfWordsCosineSimilarityFeatureGroup)
Implementations§
Source§impl FeatureGroup
impl FeatureGroup
Sourcepub fn n_features(&self) -> usize
pub fn n_features(&self) -> usize
Return the number of features this feature group will produce.
Trait Implementations§
Source§impl Clone for FeatureGroup
impl Clone for FeatureGroup
Source§fn clone(&self) -> FeatureGroup
fn clone(&self) -> FeatureGroup
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for FeatureGroup
impl RefUnwindSafe for FeatureGroup
impl Send for FeatureGroup
impl Sync for FeatureGroup
impl Unpin for FeatureGroup
impl UnwindSafe for FeatureGroup
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