pub enum GpError {
LikelihoodComputationError(String),
LinalgError(LinalgError),
EmptyCluster(String),
PlsError(PlsError),
LinfaError(Error),
LoadIoError(Error),
LoadError(String),
InvalidValueError(String),
}Expand description
An error when using GaussianProcess or a SparseGaussianProcess algorithm
Variants§
LikelihoodComputationError(String)
When LikelihoodComputation computation fails
LinalgError(LinalgError)
When linear algebra computation fails
EmptyCluster(String)
When clustering fails
PlsError(PlsError)
When PLS fails
LinfaError(Error)
When a linfa error occurs
LoadIoError(Error)
When error during loading
LoadError(String)
When error during loading
InvalidValueError(String)
When error dur to a bad value
Trait Implementations§
Source§impl Error for GpError
impl Error for GpError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<F: Float, Mean: RegressionModel<F>, Corr: CorrelationModel<F>, D: Data<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 1]>>, GpError> for GpValidParams<F, Mean, Corr>
impl<F: Float, Mean: RegressionModel<F>, Corr: CorrelationModel<F>, D: Data<Elem = F>> Fit<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 1]>>, GpError> for GpValidParams<F, Mean, Corr>
Source§impl<F: Float, Corr: CorrelationModel<F>, D: Data<Elem = F> + Sync> Fit<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 1]>>, GpError> for SgpValidParams<F, Corr>
impl<F: Float, Corr: CorrelationModel<F>, D: Data<Elem = F> + Sync> Fit<ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<D, Dim<[usize; 1]>>, GpError> for SgpValidParams<F, Corr>
Source§impl From<LinalgError> for GpError
impl From<LinalgError> for GpError
Source§fn from(source: LinalgError) -> Self
fn from(source: LinalgError) -> Self
Converts to this type from the input type.
Source§impl<F, Mean, Corr> PredictScore<F, GpError, GpParams<F, Mean, Corr>, GaussianProcess<F, Mean, Corr>> for GaussianProcess<F, Mean, Corr>
impl<F, Mean, Corr> PredictScore<F, GpError, GpParams<F, Mean, Corr>, GaussianProcess<F, Mean, Corr>> for GaussianProcess<F, Mean, Corr>
Source§fn training_data(&self) -> &(Array2<F>, Array1<F>)
fn training_data(&self) -> &(Array2<F>, Array1<F>)
Return the training data (xt, yt)
Source§fn looq2_score(&self) -> F
fn looq2_score(&self) -> F
Q2 predictive coefficient with Leave-One-Out Cross-Validation
Source§impl<F, Corr> PredictScore<F, GpError, SgpParams<F, Corr>, SparseGaussianProcess<F, Corr>> for SparseGaussianProcess<F, Corr>where
F: Float,
Corr: CorrelationModel<F>,
impl<F, Corr> PredictScore<F, GpError, SgpParams<F, Corr>, SparseGaussianProcess<F, Corr>> for SparseGaussianProcess<F, Corr>where
F: Float,
Corr: CorrelationModel<F>,
Source§fn training_data(&self) -> &(Array2<F>, Array1<F>)
fn training_data(&self) -> &(Array2<F>, Array1<F>)
Return the training data (xt, yt)
Source§fn looq2_score(&self) -> F
fn looq2_score(&self) -> F
Q2 predictive coefficient with Leave-One-Out Cross-Validation
Auto Trait Implementations§
impl Freeze for GpError
impl !RefUnwindSafe for GpError
impl Send for GpError
impl Sync for GpError
impl Unpin for GpError
impl UnsafeUnpin for GpError
impl !UnwindSafe for GpError
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> 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