Enum linfa_ica::error::FastIcaError
source · [−]#[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
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
sourceimpl Debug for FastIcaError
impl Debug for FastIcaError
sourceimpl Display for FastIcaError
impl Display for FastIcaError
sourceimpl Error for FastIcaError
impl Error for FastIcaError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<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>
sourcefn 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>
sourceimpl From<Error> for FastIcaError
impl From<Error> for FastIcaError
sourceimpl From<LinalgError> for FastIcaError
impl From<LinalgError> for FastIcaError
sourcefn from(source: LinalgError) -> Self
fn from(source: LinalgError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for FastIcaError
impl Send for FastIcaError
impl Sync for FastIcaError
impl Unpin for FastIcaError
impl UnwindSafe for FastIcaError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more