Struct linfa_linear::FittedLinearRegression
source · [−]pub struct FittedLinearRegression<F> { /* private fields */ }
Expand description
A fitted linear regression model which can be used for making predictions.
Implementations
Trait Implementations
sourceimpl<F: Clone> Clone for FittedLinearRegression<F>
impl<F: Clone> Clone for FittedLinearRegression<F>
sourcefn clone(&self) -> FittedLinearRegression<F>
fn clone(&self) -> FittedLinearRegression<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug> Debug for FittedLinearRegression<F>
impl<F: Debug> Debug for FittedLinearRegression<F>
sourceimpl<'de, F> Deserialize<'de> for FittedLinearRegression<F> where
F: Deserialize<'de>,
impl<'de, F> Deserialize<'de> for FittedLinearRegression<F> where
F: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<F: PartialEq> PartialEq<FittedLinearRegression<F>> for FittedLinearRegression<F>
impl<F: PartialEq> PartialEq<FittedLinearRegression<F>> for FittedLinearRegression<F>
sourcefn eq(&self, other: &FittedLinearRegression<F>) -> bool
fn eq(&self, other: &FittedLinearRegression<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FittedLinearRegression<F>) -> bool
fn ne(&self, other: &FittedLinearRegression<F>) -> bool
This method tests for !=
.
sourceimpl<F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>> for FittedLinearRegression<F>
impl<F: Float, D: Data<Elem = F>> PredictInplace<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>> for FittedLinearRegression<F>
sourcefn predict_inplace(&self, x: &ArrayBase<D, Ix2>, y: &mut Array1<F>)
fn predict_inplace(&self, x: &ArrayBase<D, Ix2>, y: &mut Array1<F>)
Given an input matrix X
, with shape (n_samples, n_features)
,
predict
returns the target variable according to linear model
learned from the training data distribution.
sourcefn default_target(&self, x: &ArrayBase<D, Ix2>) -> Array1<F>
fn default_target(&self, x: &ArrayBase<D, Ix2>) -> Array1<F>
Create targets that predict_inplace
works with.
sourceimpl<F> Serialize for FittedLinearRegression<F> where
F: Serialize,
impl<F> Serialize for FittedLinearRegression<F> where
F: Serialize,
impl<F> StructuralPartialEq for FittedLinearRegression<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for FittedLinearRegression<F> where
F: RefUnwindSafe,
impl<F> Send for FittedLinearRegression<F> where
F: Send,
impl<F> Sync for FittedLinearRegression<F> where
F: Sync,
impl<F> Unpin for FittedLinearRegression<F> where
F: Unpin,
impl<F> UnwindSafe for FittedLinearRegression<F> where
F: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more