Struct rusty_machine::learning::naive_bayes::Gaussian
source · [−]pub struct Gaussian { /* private fields */ }
Expand description
The Gaussian Naive Bayes model distribution.
Defines:
p(x|Ck) = ∏i N(xi ; μk, σ2k)
Implementations
Trait Implementations
sourceimpl Distribution for Gaussian
impl Distribution for Gaussian
sourcefn from_model_params(class_count: usize, features: usize) -> Gaussian
fn from_model_params(class_count: usize, features: usize) -> Gaussian
Initialize the distribution parameters.
sourcefn update_params(
&mut self,
data: &Matrix<f64>,
class: usize
) -> LearningResult<()>
fn update_params(
&mut self,
data: &Matrix<f64>,
class: usize
) -> LearningResult<()>
Updates the distribution parameters.
sourcefn joint_log_lik(
&self,
data: &Matrix<f64>,
class_prior: &[f64]
) -> LearningResult<Matrix<f64>>
fn joint_log_lik(
&self,
data: &Matrix<f64>,
class_prior: &[f64]
) -> LearningResult<Matrix<f64>>
Compute the joint log likelihood of the data. Read more
Auto Trait Implementations
impl RefUnwindSafe for Gaussian
impl Send for Gaussian
impl Sync for Gaussian
impl Unpin for Gaussian
impl UnwindSafe for Gaussian
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more