pub struct StreamingLinearRegression { /* private fields */ }Expand description
Simple streaming linear regression model
Implementations§
Trait Implementations§
Source§impl Clone for StreamingLinearRegression
impl Clone for StreamingLinearRegression
Source§fn clone(&self) -> StreamingLinearRegression
fn clone(&self) -> StreamingLinearRegression
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 StreamingLinearRegression
impl Debug for StreamingLinearRegression
Source§impl StreamingModel for StreamingLinearRegression
impl StreamingModel for StreamingLinearRegression
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
Source§fn get_performance(&self) -> Float
fn get_performance(&self) -> Float
Get model’s recent performance
Source§fn clone_model(&self) -> Box<dyn StreamingModel>
fn clone_model(&self) -> Box<dyn StreamingModel>
Clone the model
Auto Trait Implementations§
impl Freeze for StreamingLinearRegression
impl RefUnwindSafe for StreamingLinearRegression
impl Send for StreamingLinearRegression
impl Sync for StreamingLinearRegression
impl Unpin for StreamingLinearRegression
impl UnwindSafe for StreamingLinearRegression
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