linfa-bayes 0.3.1

Collection of Naive Bayes Algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ndarray_stats::errors::MinMaxError;
use thiserror::Error;

pub type Result<T> = std::result::Result<T, BayesError>;

/// An error when using a GaussianNB classifier
#[derive(Error, Debug)]
pub enum BayesError {
    /// Error when performing Max operation on data
    #[error("invalid statistical operation {0}")]
    Stats(#[from] MinMaxError),
    #[error(transparent)]
    BaseCrate(#[from] linfa::Error),
}