use ndarray_stats::errors::MinMaxError;
use thiserror::Error;
pub type Result<T> = std::result::Result<T, NaiveBayesError>;
#[derive(Error, Debug)]
pub enum NaiveBayesError {
#[error("invalid statistical operation {0}")]
Stats(#[from] MinMaxError),
#[error("invalid smoothing parameter {0}")]
InvalidSmoothing(f64),
#[error(transparent)]
BaseCrate(#[from] linfa::Error),
}