pub struct Clipper { /* private fields */ }Expand description
A simple element-wise clipper that bounds feature values to a fixed range.
Implementations§
Trait Implementations§
Source§impl Transformer for Clipper
impl Transformer for Clipper
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 Clipper
impl RefUnwindSafe for Clipper
impl Send for Clipper
impl Sync for Clipper
impl Unpin for Clipper
impl UnsafeUnpin for Clipper
impl UnwindSafe for Clipper
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