Enum linfa_linear::LinearError 
source · #[non_exhaustive]pub enum LinearError<F: Float> {
    Argmin(Error),
    BaseCrate(Error),
    NotEnoughSamples,
    NotEnoughTargets,
    InvalidPenalty(F),
    InvalidTweediePower(F),
    InvalidTargetRange(F),
    LinalgError(LinalgError),
}Expand description
An error when modeling a Linear algorithm
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Argmin(Error)
Errors encountered when using argmin’s solver
BaseCrate(Error)
NotEnoughSamples
NotEnoughTargets
InvalidPenalty(F)
InvalidTweediePower(F)
InvalidTargetRange(F)
LinalgError(LinalgError)
Trait Implementations§
source§impl<F> Display for LinearError<F>
 
impl<F> Display for LinearError<F>
source§impl<F: Float> Error for LinearError<F>
 
impl<F: Float> Error for LinearError<F>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
source§impl<F: Float, D: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError<F>> for IsotonicRegression
 
impl<F: Float, D: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError<F>> for IsotonicRegression
source§fn fit(
    &self,
    dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object, F>
 
fn fit( &self, dataset: &DatasetBase<ArrayBase<D, Ix2>, T> ) -> Result<Self::Object, F>
Fit an isotonic regression model given a feature matrix X and a target
variable y.
The feature matrix X must have shape (n_samples, 1)
The target variable y must have shape (n_samples)
Returns a FittedIsotonicRegression object which contains the fitted
parameters and can be used to predict values of the target variable
for new feature values.
type Object = FittedIsotonicRegression<F>
source§impl<F: Float, D: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError<F>> for LinearRegression
 
impl<F: Float, D: Data<Elem = F>, T: AsSingleTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError<F>> for LinearRegression
source§fn fit(
    &self,
    dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object, F>
 
fn fit( &self, dataset: &DatasetBase<ArrayBase<D, Ix2>, T> ) -> Result<Self::Object, F>
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.