bn.cv(data, bn, loss = NULL, k = 10, algorithm.args = list(),
loss.args = list(), fit = "mle", fit.args = list(),
cluster = NULL, debug = FALSE)
bn
(a fixed network structure).loss
.bn.fit
for details.bn.fit
for details..snow integration
for details and a simple
example.TRUE
a lot of debugging output
is printed; otherwise the function is completely silent.bn.kcv
.
logl
): also known asnegative
entropyornegentropy, it's the negated expected log-likelihood
of the test set for the Bayesian network fitted from the training set.logl-g
): the negated expected
log-likelihood for Gaussian Bayesian networks.pred
): theprediction errorfor a single node (specified by thetarget
parameter inloss.args
)
in a discrete network.cor
): thecorrelationbetween the observed and the predicted values for a single node
(specified by thetarget
parameter inloss.args
) in a
Gaussian Bayesian network.mse
): themean squared errorbetween the observed and the predicted values for a single node
(specified by thetarget
parameter inloss.args
) in a
Gaussian Bayesian network.bn.boot
, rbn
, bn.kcv-class
.bn.cv(learning.test, 'hc', loss = "pred", loss.args = list(target = "F"))
bn.cv(gaussian.test, 'mmhc')
Run the code above in your browser using DataLab