Naive Bayes

This learning algorithm creates a Naive Bayes graph structure in which a single class variable points to all other variables. The probability tables are filled out using Expectation Maximization.

https://raw.githubusercontent.com/sisl/Smile.jl/master/doc/naive_bayes.png

Parameters

classVariableId: the variable id corresponding to the class variable

LearnParams_NaiveBayes() = new("class")
LearnParams_NaiveBayes(var::String) = new(var)

Examples

net = Network()
learn!( net, dset, LearnParams_NaiveBayes())