pub struct MissingIndicator { /* private fields */ }Expand description
Adds a missing-value indicator for each feature.
transform([x1, x2, ...]) produces [x1, is_nan(x1) as f64, x2, is_nan(x2) as f64, ...].
The original values are preserved (including NaN), with the indicator
appended after each value.
Implementations§
Trait Implementations§
Source§impl Clone for MissingIndicator
impl Clone for MissingIndicator
Source§fn clone(&self) -> MissingIndicator
fn clone(&self) -> MissingIndicator
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 moreSource§impl Debug for MissingIndicator
impl Debug for MissingIndicator
Source§impl Transformer for MissingIndicator
impl Transformer for MissingIndicator
Source§fn output_dim(&self) -> usize
fn output_dim(&self) -> usize
Number of features produced by
transform.Source§fn transform(&self, features: &[f64]) -> Result<Vec<f64>, RillError>
fn transform(&self, features: &[f64]) -> Result<Vec<f64>, RillError>
Transform features using the current internal state.
Source§fn update(&mut self, features: &[f64]) -> Result<(), RillError>
fn update(&mut self, features: &[f64]) -> Result<(), RillError>
Update internal statistics using raw features.
Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many samples the transformer has seen.
Auto Trait Implementations§
impl Freeze for MissingIndicator
impl RefUnwindSafe for MissingIndicator
impl Send for MissingIndicator
impl Sync for MissingIndicator
impl Unpin for MissingIndicator
impl UnsafeUnpin for MissingIndicator
impl UnwindSafe for MissingIndicator
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