pub struct Standardize;Expand description
Standardization transform: (y - center) / scale.
Trait Implementations§
Source§impl Clone for Standardize
impl Clone for Standardize
Source§fn clone(&self) -> Standardize
fn clone(&self) -> Standardize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Standardize
Source§impl Debug for Standardize
impl Debug for Standardize
Source§impl Default for Standardize
impl Default for Standardize
Source§fn default() -> Standardize
fn default() -> Standardize
Returns the “default value” for a type. Read more
impl Eq for Standardize
Source§impl PartialEq for Standardize
impl PartialEq for Standardize
Source§fn eq(&self, other: &Standardize) -> bool
fn eq(&self, other: &Standardize) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Standardize
Source§impl TargetTransform for Standardize
impl TargetTransform for Standardize
Source§type State = StandardizeState
type State = StandardizeState
Состояние transform-а, сохраняемое вместе с обученной моделью.
Source§fn fit(y: &[f64]) -> Result<Self::State, TransformError>
fn fit(y: &[f64]) -> Result<Self::State, TransformError>
Оценивает состояние transform-а по обучающему target. Read more
Source§fn fit_transform(y: &[f64]) -> Result<(Self::State, Vec<f64>), TransformError>
fn fit_transform(y: &[f64]) -> Result<(Self::State, Vec<f64>), TransformError>
Оценивает состояние и преобразует весь target. Read more
Source§fn transform_slice(
state: &Self::State,
y: &[f64],
) -> Result<Vec<f64>, TransformError>
fn transform_slice( state: &Self::State, y: &[f64], ) -> Result<Vec<f64>, TransformError>
Преобразует срез target в новый
Vec. Read moreSource§fn transform_into(
state: &Self::State,
y: &[f64],
out: &mut [f64],
) -> Result<(), TransformError>
fn transform_into( state: &Self::State, y: &[f64], out: &mut [f64], ) -> Result<(), TransformError>
Преобразует срез target в caller-provided output buffer. Read more
Source§fn inverse_slice(
state: &Self::State,
values: &[f64],
) -> Result<Vec<f64>, TransformError>
fn inverse_slice( state: &Self::State, values: &[f64], ) -> Result<Vec<f64>, TransformError>
Возвращает срез значений на исходную шкалу в новый
Vec. Read moreSource§fn inverse_into(
state: &Self::State,
values: &[f64],
out: &mut [f64],
) -> Result<(), TransformError>
fn inverse_into( state: &Self::State, values: &[f64], out: &mut [f64], ) -> Result<(), TransformError>
Возвращает transform-scale values на исходную шкалу в caller-provided buffer. Read more
Auto Trait Implementations§
impl Freeze for Standardize
impl RefUnwindSafe for Standardize
impl Send for Standardize
impl Sync for Standardize
impl Unpin for Standardize
impl UnsafeUnpin for Standardize
impl UnwindSafe for Standardize
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