Description Usage Arguments Value
Cross validation for learning bayesian network
1 2 3 4 5 6 7 8 9 10 11 12 | cross_validation_learning_algorithms(
data,
algorithms,
wl,
bl,
target,
k_fold = 5,
runs = 10,
loss = "mse",
n_cluster = NULL,
debug = NULL
)
|
data |
Processed data frame for learning bayesian network |
algorithms |
Algorithms for cross validation |
wl |
Network white list |
bl |
Network black list |
target |
A character string, the label of target node for prediction |
k_fold |
The data are split in k subsets of equal size |
runs |
A positive integer number, the number of times k-fold or hold-out cross-validation will be run. |
loss |
A character string, the label of a loss function, detail see https://cran.r-project.org/web/packages/bnlearn/bnlearn.pdf |
n_cluster |
an optional cluster object from package parallel. |
debug |
Debug mode |
Cross validation result for each algorithm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.