pub struct ExponentiallyWeightedMeanRegressor { /* private fields */ }Expand description
A regressor that predicts an exponentially weighted mean of targets.
Suitable when recent observations are more relevant than older ones.
Implementations§
Trait Implementations§
Source§impl Clone for ExponentiallyWeightedMeanRegressor
impl Clone for ExponentiallyWeightedMeanRegressor
Source§fn clone(&self) -> ExponentiallyWeightedMeanRegressor
fn clone(&self) -> ExponentiallyWeightedMeanRegressor
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 OnlineRegressor for ExponentiallyWeightedMeanRegressor
impl OnlineRegressor for ExponentiallyWeightedMeanRegressor
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 ExponentiallyWeightedMeanRegressor
impl RefUnwindSafe for ExponentiallyWeightedMeanRegressor
impl Send for ExponentiallyWeightedMeanRegressor
impl Sync for ExponentiallyWeightedMeanRegressor
impl Unpin for ExponentiallyWeightedMeanRegressor
impl UnsafeUnpin for ExponentiallyWeightedMeanRegressor
impl UnwindSafe for ExponentiallyWeightedMeanRegressor
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