pub struct CompositeGenerator { /* private fields */ }Expand description
Composable feature generator
Implementations§
Trait Implementations§
Source§impl Debug for CompositeGenerator
impl Debug for CompositeGenerator
Source§impl Default for CompositeGenerator
impl Default for CompositeGenerator
Source§impl FeatureGenerator for CompositeGenerator
impl FeatureGenerator for CompositeGenerator
Source§fn generate(&self, data: &Array2<f64>) -> Result<Array2<f64>, SklearsError>
fn generate(&self, data: &Array2<f64>) -> Result<Array2<f64>, SklearsError>
Generate features from input data
Source§fn output_dim(&self) -> usize
fn output_dim(&self) -> usize
Get the output dimension
Source§fn is_stateful(&self) -> bool
fn is_stateful(&self) -> bool
Check if generator is stateful (needs fitting)
Source§fn fit_generator(&mut self, data: &Array2<f64>) -> Result<(), SklearsError>
fn fit_generator(&mut self, data: &Array2<f64>) -> Result<(), SklearsError>
Fit the generator if stateful
Auto Trait Implementations§
impl Freeze for CompositeGenerator
impl !RefUnwindSafe for CompositeGenerator
impl Send for CompositeGenerator
impl Sync for CompositeGenerator
impl Unpin for CompositeGenerator
impl !UnwindSafe for CompositeGenerator
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