Enum linfa_bayes::NaiveBayesError
source · pub enum NaiveBayesError {
Stats(MinMaxError),
InvalidSmoothing(f64),
BaseCrate(Error),
}
Expand description
Error variants from hyper-parameter construction or model estimation
Variants§
Stats(MinMaxError)
Error when performing Max operation on data
InvalidSmoothing(f64)
Invalid smoothing parameter
BaseCrate(Error)
Trait Implementations§
source§impl Debug for NaiveBayesError
impl Debug for NaiveBayesError
source§impl Display for NaiveBayesError
impl Display for NaiveBayesError
source§impl Error for NaiveBayesError
impl Error for NaiveBayesError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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, L, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for GaussianNbValidParams<F, L>where
F: Float,
L: Label + Ord,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
impl<F, L, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for GaussianNbValidParams<F, L>where F: Float, L: Label + Ord, D: Data<Elem = F>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
source§impl<F, L, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for MultinomialNbValidParams<F, L>where
F: Float,
L: Label + Ord,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
impl<F, L, D, T> Fit<ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for MultinomialNbValidParams<F, L>where F: Float, L: Label + Ord, D: Data<Elem = F>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
source§impl<'a, F, L, D, T> FitWith<'a, ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for GaussianNbValidParams<F, L>where
F: Float,
L: Label + 'a,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
impl<'a, F, L, D, T> FitWith<'a, ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for GaussianNbValidParams<F, L>where F: Float, L: Label + 'a, D: Data<Elem = F>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
source§impl<'a, F, L, D, T> FitWith<'a, ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for MultinomialNbValidParams<F, L>where
F: Float,
L: Label + 'a,
D: Data<Elem = F>,
T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
impl<'a, F, L, D, T> FitWith<'a, ArrayBase<D, Dim<[usize; 2]>>, T, NaiveBayesError> for MultinomialNbValidParams<F, L>where F: Float, L: Label + 'a, D: Data<Elem = F>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,
source§impl From<Error> for NaiveBayesError
impl From<Error> for NaiveBayesError
source§impl From<MinMaxError> for NaiveBayesError
impl From<MinMaxError> for NaiveBayesError
source§fn from(source: MinMaxError) -> Self
fn from(source: MinMaxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for NaiveBayesError
impl Send for NaiveBayesError
impl Sync for NaiveBayesError
impl Unpin for NaiveBayesError
impl UnwindSafe for NaiveBayesError
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