View source: R/print.naive_bayes_tables.R
get_cond_dist | R Documentation |
Auxiliary function for "naive_bayes"
, "*_naive_bayes"
and "naive_bayes_tables"
objects for obtaining names of class conditional distributions assigned to the features.
get_cond_dist(object)
object |
object of class inheriting from |
vector with names of class conditional distributions assigned to the features.
Michal Majka, michalmajka@hotmail.com
naive_bayes
, bernoulli_naive_bayes
, multinomial_naive_bayes
, poisson_naive_bayes
, gaussian_naive_bayes
, tables
data(iris)
nb <- naive_bayes(Species ~ ., data = iris)
get_cond_dist(nb) # <=> attr(nb$tables, "cond_dist")
get_cond_dist(tables(nb))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.