Struct rusty_machine::learning::naive_bayes::Gaussian [] [src]

pub struct Gaussian { /* fields omitted */ }

The Gaussian Naive Bayes model distribution.

Defines:

p(x|Ck) = ∏i N(xi ; μk, σ2k)

Methods

impl Gaussian
[src]

Returns the distribution means.

This is a matrix of class by feature means.

Returns the distribution variances.

This is a matrix of class by feature variances.

Trait Implementations

impl Debug for Gaussian
[src]

Formats the value using the given formatter.

impl Distribution for Gaussian
[src]

Initialize the distribution parameters.

Updates the distribution parameters.

Compute the joint log likelihood of the data. Read more