Maximum likelihood of Naive Bayes parameters. Input parameters are always stored in front of output parameter in the returned list of parameters.
1 |
data |
A categorical data set. |
vars |
A vector of all variables. |
xIndices |
A vector of input variables indices. |
yIndex |
The output variable index. |
smoothing |
A value for parameter smoothing to avoid having 0 or 1 probabilities. 1 for laplacing smoothing, 0.5 for mml smoothing. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.