Re: [Scikit-learn-general] Elementary GridSearchCV question

2015-01-23 Thread Andy
On 01/23/2015 07:35 PM, Aardvark Zebra wrote: > Thanks! It seems very counter-intuitive. If I'm calling fit(), it > should return the > best model after grid search (especially if I'm giving refit=True as a > parameter). > Unfortunately, printing the return value doesn't show the best > estimato

Re: [Scikit-learn-general] Elementary GridSearchCV question

2015-01-23 Thread Andy
On 01/23/2015 07:35 PM, Aardvark Zebra wrote: Thanks! It seems very counter-intuitive. If I'm calling fit(), it should return the best model after grid search (especially if I'm giving refit=True as a parameter). Unfortunately, printing the return value doesn't show the best estimator; even the

Re: [Scikit-learn-general] Elementary GridSearchCV question

2015-01-23 Thread Aardvark Zebra
Thanks! It seems very counter-intuitive. If I'm calling fit(), it should return the best model after grid search (especially if I'm giving refit=True as a parameter). Unfortunately, printing the return value doesn't show the best estimator; even the get_params() call doesn't reveal it. One has to a

Re: [Scikit-learn-general] Elementary GridSearchCV question

2015-01-22 Thread Joel Nothman
That's not the learnt estimator. You're looking at the initial input (i.e. the parameters that are or are not changed during the search). The learnt estimators are cloned from that one, and the best is stored at clf.best_estimator_ (if refit=True). Cheers, Joel On 23 January 2015 at 12:20, Aardva