| Index | Topics |
| bn.kcv class {bnlearn} | R Documentation |
The bn.kcv class structure
Description
The structure of an object of the bn.kcv S3 class.
Details
An object of class bn.kcv is a list whose elements correspond to the iterations of a k-fold
cross-validation. Each element contains the following objects:
test: an integer vector, the indexes of the observations used as a test set.fitted: an object of classbn.fit, the Bayesian network fitted from the training set.loss: the value of the loss function.
In addition, an object of class bn.kcv has the following attributes:
loss: a character string, the label of the loss function.mean: the mean of the values of the loss function computed in thekiterations of the cross-validation.bn: either a character string (the label of the learning algorithm to be applied to the training data in each iteration) or an object of classbn(a fixed network structure).
Author(s)
Marco Scutari
| Index | Topics |
