pub struct SimdFeatureOps { /* private fields */ }Expand description
SIMD-optimized feature transformations
Implementations§
Source§impl SimdFeatureOps
impl SimdFeatureOps
Sourcepub fn new(config: SimdConfig) -> Self
pub fn new(config: SimdConfig) -> Self
Create new SIMD feature operations
Sourcepub fn standardize(
&self,
data: &ArrayView2<'_, Float>,
) -> SklResult<Array2<Float>>
pub fn standardize( &self, data: &ArrayView2<'_, Float>, ) -> SklResult<Array2<Float>>
Vectorized standardization (z-score normalization)
Sourcepub fn min_max_scale(
&self,
data: &ArrayView2<'_, Float>,
feature_range: (Float, Float),
) -> SklResult<Array2<Float>>
pub fn min_max_scale( &self, data: &ArrayView2<'_, Float>, feature_range: (Float, Float), ) -> SklResult<Array2<Float>>
Vectorized min-max scaling
Sourcepub fn polynomial_features(
&self,
data: &ArrayView2<'_, Float>,
degree: usize,
) -> SklResult<Array2<Float>>
pub fn polynomial_features( &self, data: &ArrayView2<'_, Float>, degree: usize, ) -> SklResult<Array2<Float>>
Vectorized polynomial features
Auto Trait Implementations§
impl Freeze for SimdFeatureOps
impl RefUnwindSafe for SimdFeatureOps
impl Send for SimdFeatureOps
impl Sync for SimdFeatureOps
impl Unpin for SimdFeatureOps
impl UnwindSafe for SimdFeatureOps
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