[scikit-learn] Is something wrong with this gridsearchCV?

Sebastian Raschka se.raschka at gmail.com
Thu Mar 16 12:27:02 EDT 2017


I am not using Keras and don’t know how nicely it plays with sklearn objects these days, but you are not giving all the data to the grid search object, which is why your model doesn’t get to see the whole dataset during grid search; i.e., you have `np.asarray(input_train[:-(len(input_train)/1000)]`

> On Mar 16, 2017, at 11:50 AM, Carlton Banks <noflaco at gmail.com> wrote:
> 
> I am currently using grid search to optimize my keras model… 
> 
> Something seemed  a bit off during the training?
> 
> https://www.dropbox.com/s/da0ztv2kqtkrfpu/Screenshot%20from%202017-03-16%2016%3A43%3A42.png?dl=0
> 
> For some reason is the training for each epoch not done for all datapoints?… 
> 
> What could be wrong?
> 
> Here is the code:
> 
> http://pastebin.com/raw/itJFm5a6
> 
> Anything that seems off?
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn



More information about the scikit-learn mailing list