pub struct FunctionTransformerConfig<F, G>where
F: Fn(&Array2<Float>) -> Result<Array2<Float>> + Send + Sync,
G: Fn(&Array2<Float>) -> Result<Array2<Float>> + Send + Sync,{
pub func: F,
pub inverse_func: Option<G>,
pub check_inverse: bool,
pub validate: bool,
}Expand description
Configuration for FunctionTransformer
Fields§
§func: FThe function to apply forward transformation
inverse_func: Option<G>The function to apply inverse transformation (optional)
check_inverse: boolWhether to check that func(x) and inverse_func(func(x)) are equal
validate: boolWhether to validate input
Trait Implementations§
Source§impl<F, G> Clone for FunctionTransformerConfig<F, G>
impl<F, G> Clone for FunctionTransformerConfig<F, G>
Source§fn clone(&self) -> FunctionTransformerConfig<F, G>
fn clone(&self) -> FunctionTransformerConfig<F, G>
Returns a duplicate 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<F, G> Freeze for FunctionTransformerConfig<F, G>
impl<F, G> RefUnwindSafe for FunctionTransformerConfig<F, G>where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<F, G> Send for FunctionTransformerConfig<F, G>
impl<F, G> Sync for FunctionTransformerConfig<F, G>
impl<F, G> Unpin for FunctionTransformerConfig<F, G>
impl<F, G> UnwindSafe for FunctionTransformerConfig<F, G>where
F: UnwindSafe,
G: 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> 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