LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Chapter 2 - Training versus Testing (http://book.caltech.edu/bookforum/forumdisplay.php?f=109)

 goodnight 05-09-2012 03:27 PM

Multiple bins

Hi All,

I'm a little bit confused about the multiple bin analogy. I try to approach it from the practical point of view. Could you please check that my understanding is correct?

My example is the following:
We have a large dataset provided by our customer. We choose to use the 80% of the data for training an ML algorithm (let's say a neural network with fixed topology – constant number of layers and neurons). We want to use the rest 20% for testing (and we don't use this part of the data in the training).

The training process means that we choose a neural network which produces the best result for the training data set. Hypothesis set 'H' means all the possible neural networks. Hypothesis 'h(i)' is a network with one particular weight set. N means the number of data in the training set. For this training we can apply the Hoeffding inequality with multipe bins. M can be calculated somehow, I'll understand it later :bow::bow:

Hypothesis 'g' is the winner neural network.

1) Is my understanding correct that the original Hoeffding inequality can be applied for 'g' to the testing data set (which was not used for the training)? If the E(in) on the test data set is close to the E(in) in the training data set, we are happy and can provide 'g' to our customer.

2) My confusion is that the original one-bin Hoeffding cannot be applied to 'g' on the training data!
Why not? Let's say that I don't run any training on the data set. After the customer provided me the data set, I meet a magican. The magican gives me a hypothesis 'h(i)'. He forgets to mention that if I run a learning, my 'g' would be equal to his 'h(i)'. He tells me 'try this hypothesis on your data set, the E(in) will be very small.' He also tells me 'you know Hoeffding. N is constant, epsilon also fixed, you can calculate that it's a very nice hypothesis with a good chance!”
After it a friend of mine comes to me, he tells me that he did run a training, he found the g is equal to the 'h(i)' provided by the magican, that's why he suggest not to apply Hoeffding on it, because he cannot do it!

What should I do?

 markland 05-09-2012 10:20 PM

Re: Multiple bins

Interesting question. I think what's wrong with #2 is the order of events. Hoeffding applies when you pick your h(i) or H first and then get the data. If you or the magician has used the data to pick h(i) then it doesn't apply. But if you took the magician's h(i) and then sampled new data points, that even the magician hadn't seen yet, then one-bin Hoeffding would apply again, though of course in might turn out that Ein is no longer small on the new data sample.

 All times are GMT -7. The time now is 07:55 PM.