k-fold cross validation

The engine.
Post Reply
kck
Posts: 3
Joined: Thu Jun 05, 2008 3:57 am

k-fold cross validation

Post by kck »

is k-fold cross validation possible for bayesian networks including own crafted one using smile or genie?
mark
Posts: 179
Joined: Tue Nov 27, 2007 4:02 pm

Post by mark »

Depends on what you're trying to evaluate. Please elaborate.
kck
Posts: 3
Joined: Thu Jun 05, 2008 3:57 am

Post by kck »

To evaluate the prediction accuracy of a BN given a test dataset.
For instance, 10-fold cross validation.
Break data into 10 sets of size n/10. Train on 9 datasets and test on 1. Repeat 10 times and take a mean accuracy.
mark
Posts: 179
Joined: Tue Nov 27, 2007 4:02 pm

Post by mark »

Yes, that's certainly possible but you'll have to write it yourself.
Post Reply