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)
LinalgError(LinalgError)
Trait Implementations
impl Error 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]
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>
fn fit(&self, ds: &DatasetBase<ArrayBase<D, Ix2>, T>) -> Result<Self::Object>
[src]
impl<F: Float, D: Data<Elem = F>, T: AsTargets<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, LinearError> for LinearRegression
[src]
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]
&self,
dataset: &DatasetBase<ArrayBase<D, Ix2>, T>
) -> Result<Self::Object>
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<LinalgError> for LinearError
[src]
impl From<LinalgError> for LinearError
[src]fn from(source: LinalgError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LinearError
impl !RefUnwindSafe for LinearError
impl Send for LinearError
impl Send for LinearError
impl Sync for LinearError
impl Sync for LinearError
impl Unpin for LinearError
impl Unpin for LinearError
impl !UnwindSafe for LinearError
impl !UnwindSafe for LinearError