



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!




First Name ______________________ Last Name _____________________ Email _______________
1 2
Final Examination CS540-1: Introduction to Artificial Intelligence Fall 2012 20 questions, 5 points each
INSTRUCTIONS: WRITE YOUR ANSWERS ON THE ANSWER SHEET. WE WILL NOT GRADE ANSWERS ON OTHER PAGES. WRITE DOWN THE ANSWERS ONLY -- DO NOT INCLUDE INTERMEDIATE STEPS OR DERIVATIONS. BE SURE TO INCLUDE YOUR NAME AND EMAIL ON THE ANSWER SHEET, TOO.
a. A binary classifier with accuracy 0.7 is more useful than a binary classifier with accuracy 0.1.
b. In a feature vector, all feature values must be non-negative.
c. In a training set, no two items can have the same feature vector.
d. After a classifier has been learned on a training set, one can randomly sample 20% of the training set to form a test set, and use the test set to evaluate the accuracy of the classifier.
e. One can copy a training set 10 times to form a larger training set in order to learn a better classifier.
All false.
One can negate the prediction of the 0.1 classifier, which will have accuracy 0. Feature values can be any number; in fact they don’t have to be numerical Multiple items can have the same feature vector. Recall height and weight of a person. One cannot re-use even part of the training set for evaluation. There is no new information.
Cluster 1 = (0,0), (1,1), (2,2)
Cluster 2 = (0,1), (1,0)
Cluster 3= (0,0)
With Euclidean distance and complete linkage, which clusters are merged in the next step of hierarchical clustering?
Complete linkage measures the longest distance between points in two clusters.
D(cluster1, cluster2)=Euclidean((2,2),(0,1)) = sqrt(5)
D(cluster1, cluster3)=Euclidean((2,2),(0,0)) = sqrt(8)
D(cluster2, cluster3)=Euclidean((0,1),(0,0))=
When C=0, the slack variables epsilon’s can be anything. This makes all the margin constraints yi (W’Xi+b) >= 1-epsilon_i effectively disappear: No matter what W and b is, one can always find some epsilon to make the inequality hold. Then, the objective can be trivially minimized by W=0. This is what W will be.
g(h)=y
1+exp(-h)=1/y
exp(-h)=1/y-
h= -log(1/y – 1)
h=1-x
x1-1=log(1/y-1) x1=log(1/y - 1)+
P(B)P(A|B)=P(A)P(B|A)
P(B)=P(A) P(B|A)/P(A|B)
Since P(A|B)=3 P(B|A), we have P(B)=P(A)/3=0.041.
Neither. Both trials are equally likely to be heads.
P(~A,~B,~C)=P(~A)P(~B|~A)P(~C|~B)=(1-.3) (1-.5) (1-.1)=.7.5.9=0.
p has to be no bigger than 1. Otherwise, p*h(s) when h(s)=H is the true cost will not be admissible. The same argument on i(s) leads to p no smaller than zero. Then, ph+(1-p)i <= pH+(1-p)H=H. So, p in [0,1]. One can also use a convex combination argument.
The states are A,B,C,D,D,G.
The game tree is the subtree of the II-nim game in lecture slides, except that min and max switch order. The game theoretical value is 1 because Max can win by first taking all two sticks from the 2nd pile.