nb {bnclassify} | R Documentation |
Learn a naive Bayes network structure.
nb(class, dataset = NULL, features = NULL)
class |
A character. Name of the class variable. |
dataset |
The data frame from which to learn the classifier. |
features |
A character vector. The names of the features. This argument
is ignored if |
A bnc_dag
object.
data(car) nb <- nb('class', car) nb2 <- nb('class', features = letters[1:10]) ## Not run: plot(nb2)