pub struct Log1pShift;Expand description
log1p transform with a fitted shift for targets that may contain zero or
negative values.
The fitted shift maps the minimum training value to margin, so
transform(y) = ln(1 + y + shift). New values must satisfy
y + shift >= 0.
Trait Implementations§
Source§impl Clone for Log1pShift
impl Clone for Log1pShift
Source§fn clone(&self) -> Log1pShift
fn clone(&self) -> Log1pShift
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 Log1pShift
Source§impl Debug for Log1pShift
impl Debug for Log1pShift
Source§impl Default for Log1pShift
impl Default for Log1pShift
Source§fn default() -> Log1pShift
fn default() -> Log1pShift
Returns the “default value” for a type. Read more
impl Eq for Log1pShift
Source§impl PartialEq for Log1pShift
impl PartialEq for Log1pShift
Source§fn eq(&self, other: &Log1pShift) -> bool
fn eq(&self, other: &Log1pShift) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Log1pShift
Source§impl TargetTransform for Log1pShift
impl TargetTransform for Log1pShift
Source§type State = Log1pShiftState
type State = Log1pShiftState
Состояние 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 Log1pShift
impl RefUnwindSafe for Log1pShift
impl Send for Log1pShift
impl Sync for Log1pShift
impl Unpin for Log1pShift
impl UnsafeUnpin for Log1pShift
impl UnwindSafe for Log1pShift
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