inspect_bnc_dag {bnclassify} | R Documentation |
Inspect a Bayesian network classifier structure.
Description
Functions for inspecting a bnc_dag
object.
Usage
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)
Arguments
x |
The |
Functions
-
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 ifx
is a semi-naive Bayes. -
is_anb()
: Returns TRUE ifx
is an augmented naive Bayes. -
is_nb()
: Returns TRUE ifx
is a naive Bayes. -
is_ode()
: Returns TRUE ifx
is a one-dependence estimator.
Examples
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
narcs(nb)
is_ode(nb)
[Package bnclassify version 0.4.8 Index]