Description Usage Arguments Value Examples
Bernoulli model is equivalent to the binary independence model, which generates an indicator for each term of the vocabulary, either 1 indicatingpresence of the term in the document or 0 indicating absence. (we're using bernoulli distribution for conditional probabilities p(F|c) calculation ) More information about algorithm can be found in the book Introduction to Information Retrieval (p.253-265)
1 | fit.nb.bernoulli(data, fact)
|
data |
data.frame contains values of our training set |
fact |
Factor categories list pointing the right classification of the data (one per sample) |
object klasy mcTbnb do uzycia w funkcji predict
1 | fit.nb.bernoulli(train.data, label)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.