Description Usage Arguments Value Examples
Training bayesian network
1 2 3 4 5 6 7 8 9 10 11 | training_model(
training_type,
data,
number_layers,
bl,
wl,
n_cluster,
algorithms,
number_bootstrap = 100,
debug = FALSE
)
|
training_type |
Training type, discrete or continuous |
data |
Data for training |
number_layers |
Number of bayesian network layer |
bl |
List of blacklist |
wl |
List of whitelist |
n_cluster |
Number of core for training |
algorithms |
Algorithms for learning network structure and parameters |
number_bootstrap |
Number of bootstrap |
debug |
Debug mode |
An object list of trained model and training parameters
1 2 3 4 5 6 7 8 9 10 11 | library(wrmbn)
data("preprocessed")
training_type <- preprocessed$type
data <- preprocessed$data
number_layers <- preprocessed$desire_layers
bl <- bl_wl$blacklist
wl <- bl_wl$whitelist
n_cluster <- 4
algorithms <- c("gs", "hc", "tabu", "iamb", "inter.iamb", "fast.iamb")
algorithms <- c("hc", "tabu")
trained_models <- training_model(training_type, data, number_layers, bl, wl, n_cluster, algorithms, number_bootstrap = 500, debug = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.