This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: column is the index for the data points, the second one shows the value for the feature (just one attribute) and the last column gives the class label. We will use nearest neighbor classifier for this problem. sample Attribute 1 Class table 1 0.1  2 0.7  3 1.0 + 4 1.6 + 5 2.0 + 6 2.5  7 3.2 + 8 3.5  9 4.1 + 10 4.9 + (a) What is the 5fold CV error of 1NN on this data set? Split the data like this: I: instance 1, 2; II: 3, 4; III: 5, 6; IV: 7, 8; V: 9, 10. The error rate for each of the folds is: 1, 0.5, 0.5, 1, 1, respectively. The average error rate is thus 0.8. (b) What is the 2fold CV error of 3NN on this data set? Use the first 5 data points in the first subset, and the last 5 points in the other subset. The error rate for the two folds is 0.6, 0.4. The average error rate is 0.5....
View
Full
Document
This note was uploaded on 01/25/2012 for the course CS 6375 taught by Professor Yangliu during the Spring '09 term at University of Texas at Dallas, Richardson.
 Spring '09
 yangliu
 Machine Learning

Click to edit the document details