Skip to content

Cross validation for Naive Bayes and Bayes Networks

3 messages · Guilherme Ferraz de Arruda, Marco Scutari

#
Hi Guilherme,

On Sun, Apr 14, 2013 at 11:48 PM, Guilherme Ferraz de Arruda
<guiep at yahoo.com.br> wrote:
You can do that using the object returned by bn.cv(), because it
contains the predicted values and the indexes of the corresponding
observations in the original data, for each fold. It's just a matter
to reassemble observed and predicted class labels and compute your
metrics.
You might be able to trick the tune() function to do it, but I am not sure.

Marco