pub struct MeanRegressor { /* private fields */ }Expand description
A regressor that always predicts the running mean of observed targets.
This is the simplest meaningful online regression baseline.
Implementations§
Trait Implementations§
Source§impl Clone for MeanRegressor
impl Clone for MeanRegressor
Source§fn clone(&self) -> MeanRegressor
fn clone(&self) -> MeanRegressor
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 MeanRegressor
impl Debug for MeanRegressor
Source§impl Default for MeanRegressor
impl Default for MeanRegressor
Source§impl OnlineRegressor for MeanRegressor
impl OnlineRegressor for MeanRegressor
Source§fn feature_count(&self) -> usize
fn feature_count(&self) -> usize
The number of features the model expects.
Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many training samples the model has seen so far.
Source§fn predict(&self, _features: &[f64]) -> Result<f64, RillError>
fn predict(&self, _features: &[f64]) -> Result<f64, RillError>
Predict the target for the given feature slice. Read more
Auto Trait Implementations§
impl Freeze for MeanRegressor
impl RefUnwindSafe for MeanRegressor
impl Send for MeanRegressor
impl Sync for MeanRegressor
impl Unpin for MeanRegressor
impl UnsafeUnpin for MeanRegressor
impl UnwindSafe for MeanRegressor
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