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

pub struct Bernoulli { /* fields omitted */ }

The Bernoulli Naive Bayes model distribution.

Defines:

p(x|Ck) = ∏i pkxi (1-p)k1-xi

Methods

impl Bernoulli
[src]

The log probability matrix.

A matrix of class by feature model log-probabilities.

Trait Implementations

impl Debug for Bernoulli
[src]

Formats the value using the given formatter.

impl Distribution for Bernoulli
[src]

Initialize the distribution parameters.

Updates the distribution parameters.

Compute the joint log likelihood of the data. Read more