CountVonCount 
11032016 10:08 AM 
Re: data snooping
Quote:
Originally Posted by Sangrock Lee
(Post 12464)
Is it data snooping even looingk at training data set? Assume that test data set is completely unknown, Of course.

That is an interesting question and I don't know the exact answer. But I try to give an answer that fits to my understanding.
If you look at the trainings data set you do some "learning" in your mind. Thus you decrease the number of hypothesis dramatically by choosing a hypothesis set that seems to fit to the trainings data.
This means you cannot work with from the reduced hypothesis set to calculate the generalization bound. Instead you need to use a higher , but it is unclear which to use, since you don't know exactly the of the full hypothesis set in your mind before looking at the data.
However if you have not looked at the testdata and keep this data safe until you find the final hypothesis g(x) you can verify your final hypothesis with the testdata. The result is and with the Hoeffdingbound you can estimate your completely independent of the VCDimension value.
Thus my answer is: Yes it is snooping, if you look at the trainings data. Thus you cannot calculate the generalization bound out of the VCDimension. But since you have not looked at the testdata you can instead calculate the Hoeffdingbound and the result is a valid estimate for the outofsample error.
However keep in mind, that after this calculation your testdata is also compromised and you cannot simply repeat the procedure, if the result is not as expected.
