

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Due Monday 11/12/07 by 5 pm – email to [email protected]
**1. What is K-fold cross validation? What data is used for training? What data is used for testing? K-fold cross validation is a training/validation method that divides the data set into K groups. In each round of cross-validation all but one of the groups (K-1) are used as the training set and the reserved group is used as the validation (testing) dataset. This is repeated until each K groups has been used as a testing dataset.
5 Fold Cross Validation Results Algorithm Accuracy TPRate FPRate Precision Recall TP FP FN TN NB 62.25% 0.628 0.363 0.634 0.628 628 372 363 637 J48 58.75% 0.511 0.336 0.603 0.511 511 489 336 664 SVM 61.7% 0.595 0.361 0.622 0.595 595 405 361 639 SVM RBF
Test Case Results Algorithm Accuracy TPRate FPRate Precision Recall TP FP FN TN NB 73.5% 0.828 0.377 0.726 0.828 53 11 20 33 J48 71.7% 0.641 0.189 0.804 0.641 41 23 10 43 SVM 74.4% 0.828 0.358 0.736 0.828 53 11 19 34 SVM RBF
**7. What algorithm did the best and under what conditions? Answers to this question can vary. It depended on what you determined to be most important. For example, if you thought the performance in the cross validation experiments were the most important, and were only concerned with accuracy, you might conclude that Naïve Bayes is the best, closely followed by the two SVMs. However, if you were concerned with precision, you might have chosen the SVM with the RBF kernel. You may have considered the performance on the test case more important, and chosen the J48 decision tree because it had the highest precision. The point is that evaluating classifiers is not necessarily straightforward, and different people will have different goals and priorities for their prediction tasks.