inspect_bnc_dag | R Documentation |
Functions for inspecting a bnc_dag
object.
class_var(x)
features(x)
vars(x)
families(x)
modelstring(x)
feature_families(x)
narcs(x)
is_semi_naive(x)
is_anb(x)
is_nb(x)
is_ode(x)
x |
The |
class_var()
: Returns the class variable.
features()
: Returns the features.
vars()
: Returns all variables (i.e., features + class).
families()
: Returns the family of each variable.
modelstring()
: Returns the model string of the network in bnlearn format (adding a space in between two families).
feature_families()
: Returns the family of each feature.
narcs()
: Returns the number of arcs.
is_semi_naive()
: Returns TRUE if x
is a semi-naive Bayes.
is_anb()
: Returns TRUE if x
is an augmented naive Bayes.
is_nb()
: Returns TRUE if x
is a naive Bayes.
is_ode()
: Returns TRUE if x
is a one-dependence estimator.
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
narcs(nb)
is_ode(nb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.