pub struct IncrementalLinearRegression { /* private fields */ }Expand description
Simple incremental linear regression model
Implementations§
Source§impl IncrementalLinearRegression
impl IncrementalLinearRegression
pub fn deserialize(data: &[u8]) -> Result<Box<dyn IncrementalModel>>
Trait Implementations§
Source§impl Clone for IncrementalLinearRegression
impl Clone for IncrementalLinearRegression
Source§fn clone(&self) -> IncrementalLinearRegression
fn clone(&self) -> IncrementalLinearRegression
Returns a duplicate of the value. Read more
1.0.0 · 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 IncrementalLinearRegression
impl Debug for IncrementalLinearRegression
Source§impl IncrementalModel for IncrementalLinearRegression
impl IncrementalModel for IncrementalLinearRegression
Source§fn partial_fit(&mut self, x: &Array1<Float>, y: Float) -> Result<()>
fn partial_fit(&mut self, x: &Array1<Float>, y: Float) -> Result<()>
Incrementally update the model with new data
Source§fn complexity(&self) -> usize
fn complexity(&self) -> usize
Get model complexity (for memory estimation)
Source§fn clone_model(&self) -> Box<dyn IncrementalModel>
fn clone_model(&self) -> Box<dyn IncrementalModel>
Clone the model
Auto Trait Implementations§
impl Freeze for IncrementalLinearRegression
impl RefUnwindSafe for IncrementalLinearRegression
impl Send for IncrementalLinearRegression
impl Sync for IncrementalLinearRegression
impl Unpin for IncrementalLinearRegression
impl UnwindSafe for IncrementalLinearRegression
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more