#[non_exhaustive]pub enum FastIcaError {
NotEnoughSamples,
InvalidValue(String),
SvdDecomposition,
InvalidTolerance(f32),
LinalgError(LinalgError),
LinfaError(Error),
}Expand description
An error when modeling FastICA algorithm
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotEnoughSamples
When there are no samples in the provided dataset
InvalidValue(String)
When any of the hyperparameters are set the wrong value
SvdDecomposition
If we fail to compute any components of the SVD decomposition due to an Ill-Conditioned matrix
InvalidTolerance(f32)
LinalgError(LinalgError)
Errors encountered during linear algebra operations
LinfaError(Error)
Trait Implementations§
Source§impl Debug for FastIcaError
impl Debug for FastIcaError
Source§impl Display for FastIcaError
impl Display for FastIcaError
Source§impl Error for FastIcaError
impl Error for FastIcaError
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, D: Data<Elem = F>, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, FastIcaError> for FastIcaValidParams<F>
impl<F: Float, D: Data<Elem = F>, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, FastIcaError> for FastIcaValidParams<F>
Source§fn fit(
&self,
dataset: &DatasetBase<ArrayBase<D, Ix2>, T>,
) -> Result<Self::Object>
fn fit( &self, dataset: &DatasetBase<ArrayBase<D, Ix2>, T>, ) -> Result<Self::Object>
Fit the model
§Errors
If the FastIcaValidParams::ncomponents is set to a number greater than the minimum of
the number of rows and columns
If the alpha value set for GFunc::Logcosh is not between 1 and 2
inclusive
type Object = FastIca<F>
Source§impl From<Error> for FastIcaError
impl From<Error> for FastIcaError
Source§impl From<LinalgError> for FastIcaError
impl From<LinalgError> for FastIcaError
Source§fn from(source: LinalgError) -> Self
fn from(source: LinalgError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FastIcaError
impl RefUnwindSafe for FastIcaError
impl Send for FastIcaError
impl Sync for FastIcaError
impl Unpin for FastIcaError
impl UnwindSafe for FastIcaError
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