pub struct IdentityPositive;Expand description
Identity transform that validates strictly positive targets.
Trait Implementations§
Source§impl Clone for IdentityPositive
impl Clone for IdentityPositive
Source§fn clone(&self) -> IdentityPositive
fn clone(&self) -> IdentityPositive
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 IdentityPositive
Source§impl Debug for IdentityPositive
impl Debug for IdentityPositive
Source§impl Default for IdentityPositive
impl Default for IdentityPositive
Source§fn default() -> IdentityPositive
fn default() -> IdentityPositive
Returns the “default value” for a type. Read more
impl Eq for IdentityPositive
Source§impl PartialEq for IdentityPositive
impl PartialEq for IdentityPositive
Source§fn eq(&self, other: &IdentityPositive) -> bool
fn eq(&self, other: &IdentityPositive) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdentityPositive
Source§impl TargetTransform for IdentityPositive
impl TargetTransform for IdentityPositive
Source§type State = IdentityPositiveState
type State = IdentityPositiveState
Состояние transform-а, сохраняемое вместе с обученной моделью.
Source§fn fit(y: &[f64]) -> Result<Self::State, TransformError>
fn fit(y: &[f64]) -> Result<Self::State, TransformError>
Оценивает состояние transform-а по обучающему 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 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 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 IdentityPositive
impl RefUnwindSafe for IdentityPositive
impl Send for IdentityPositive
impl Sync for IdentityPositive
impl Unpin for IdentityPositive
impl UnsafeUnpin for IdentityPositive
impl UnwindSafe for IdentityPositive
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