Académique Documents
Professionnel Documents
Culture Documents
P
(a) H = {h : xX h(x) = k}, i.e. all hypotheses that classify exactly k
items positive.
P
(b) H = {h : xX h(x) k}, i.e. all hypotheses that classify at most
k items positive.
Ans.
|X |
(a)
such that,
P H is a subset of all the binary mapping from X to {0, 1}
h(x)
=
k.
It
is
easy
to
prove
that
VC-dim(H)
k.
As,
if we set
xX
x1 , x2 . . . xk+1 all 1, there is no h that can classify them. If, |X | > 2k then
VC-dim(H) is clearly k. As for any labeling of k x0i s, there can be one
h that can shatter them. In this case, the ideal h will have lot of (> k)
points not in the taken set, to classify in whatever way it needs to satisfy
the first constraint.
But if |X | 2k then it can only shatter, |X |/2 points other wise you
can find a always set a subset with all zeros and there will not be any
h H that can classify it with zero error. Summarily, VC-dim(H) =
min(|X |/2, k).
4. Let
h (x) = sgn(sin(x))
where sgn(z) = 1 if z 0, and 0 otherwise. Consider
H = {h : R}.
Let xi = 2i for i = 1 . . . n. Prove that, for any y1 , . . . , yn {0, 1}, R
such that h (xi ) = yi for i = 1 . . . n.
You have just shown that V Cdim(H) = , even though H is parametrized
by a single parameter .