Struct smartcore::naive_bayes::categorical::CategoricalNBParameters
source · pub struct CategoricalNBParameters {
pub alpha: f64,
}
Expand description
CategoricalNB
parameters. Use Default::default()
for default values.
Fields§
§alpha: f64
Additive (Laplace/Lidstone) smoothing parameter (0 for no smoothing).
Implementations§
source§impl CategoricalNBParameters
impl CategoricalNBParameters
sourcepub fn with_alpha(self, alpha: f64) -> Self
pub fn with_alpha(self, alpha: f64) -> Self
Additive (Laplace/Lidstone) smoothing parameter (0 for no smoothing).
Trait Implementations§
source§impl Clone for CategoricalNBParameters
impl Clone for CategoricalNBParameters
source§fn clone(&self) -> CategoricalNBParameters
fn clone(&self) -> CategoricalNBParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CategoricalNBParameters
impl Debug for CategoricalNBParameters
source§impl Default for CategoricalNBParameters
impl Default for CategoricalNBParameters
source§impl<T: Number + Unsigned, X: Array2<T>, Y: Array1<T>> SupervisedEstimator<X, Y, CategoricalNBParameters> for CategoricalNB<T, X, Y>
impl<T: Number + Unsigned, X: Array2<T>, Y: Array1<T>> SupervisedEstimator<X, Y, CategoricalNBParameters> for CategoricalNB<T, X, Y>
Auto Trait Implementations§
impl RefUnwindSafe for CategoricalNBParameters
impl Send for CategoricalNBParameters
impl Sync for CategoricalNBParameters
impl Unpin for CategoricalNBParameters
impl UnwindSafe for CategoricalNBParameters
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