pub struct FeatureGeneratorBuilder { /* private fields */ }Expand description
Feature generator builder for fluent API
Implementations§
Source§impl FeatureGeneratorBuilder
impl FeatureGeneratorBuilder
Sourcepub fn with_random_fourier(
self,
n_components: usize,
gamma: f64,
random_state: Option<u64>,
) -> Self
pub fn with_random_fourier( self, n_components: usize, gamma: f64, random_state: Option<u64>, ) -> Self
Add Random Fourier features
Sourcepub fn with_polynomial(self, degree: usize, include_bias: bool) -> Self
pub fn with_polynomial(self, degree: usize, include_bias: bool) -> Self
Add polynomial features
Sourcepub fn with_custom(self, generator: Box<dyn FeatureGenerator>) -> Self
pub fn with_custom(self, generator: Box<dyn FeatureGenerator>) -> Self
Add a custom generator
Sourcepub fn build(self) -> CompositeGenerator
pub fn build(self) -> CompositeGenerator
Build the composite generator
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FeatureGeneratorBuilder
impl !RefUnwindSafe for FeatureGeneratorBuilder
impl Send for FeatureGeneratorBuilder
impl Sync for FeatureGeneratorBuilder
impl Unpin for FeatureGeneratorBuilder
impl !UnwindSafe for FeatureGeneratorBuilder
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