nb | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.