Enum linfa_linear::LinearError[][src]

pub enum LinearError {
    Argmin(Error),
    BaseCrate(Error),
    NotEnoughSamples,
    NotEnoughTargets,
    LinalgError(LinalgError),
}

An error when modeling a Linear algorithm

Variants

Argmin(Error)

Errors encountered when using argmin’s solver

BaseCrate(Error)
NotEnoughSamples
NotEnoughTargets
LinalgError(LinalgError)

Trait Implementations

impl Debug for LinearError[src]

impl Display for LinearError[src]

impl Error for LinearError[src]

impl<A: Float, D: Data<Elem = A>, T: AsTargets<Elem = A>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError> for TweedieRegressor[src]

type Object = FittedTweedieRegressor<A>

impl<F: Float, D: Data<Elem = F>, T: AsTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError> for LinearRegression[src]

type Object = FittedLinearRegression<F>

fn fit(
    &self,
    dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object>
[src]

Fit a linear regression model given a feature matrix X and a target variable y.

The feature matrix X must have shape (n_samples, n_features)

The target variable y must have shape (n_samples)

Returns a FittedLinearRegression object which contains the fitted parameters and can be used to predict values of the target variable for new feature values.

impl From<Error> for LinearError[src]

impl From<Error> for LinearError[src]

impl From<LinalgError> for LinearError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,