Thanks.
I didn't thing about **
On 14 July 2014 17:10, Gael Varoquaux wrote:
> > clf2 = svm.SVC(best_para_) #clf2 with best parameters
> > But this does not work.
>
> You could try 'svm.SVC.(**best_params_)'
>
> See http://stackoverflow.com/questions/3394835/args-and-kwargs
>
>
>
> --
> clf2 = svm.SVC(best_para_) #clf2 with best parameters
> But this does not work.
You could try 'svm.SVC.(**best_params_)'
See http://stackoverflow.com/questions/3394835/args-and-kwargs
--
Want fast and easy access t
How to define a classifiers parameters from a dictionary .
using grid search I get the best parameters which is a dictionary.
clf = svm.SVC()
grid_search = GridSearchCV(clf, param_grid=param_grid)
grid_search.fit(X, y)
best_para_ = grid_search.best_params_
# best_para_ is a dictionary which conta