I tried the sklearn example about grid search ("set parameters by
cross-validation").
The result of gs.best_estimator using the sklearn iris dataset is giving me:
> LinearSVC(C=1.0, class_weight=None, dual=True, fit_intercept=True,
> intercept_scaling=1, loss='l2', multi_class='ovr', penalty='l2',
> random_state=None, tol=0.0001, verbose=0)
as opposed to
> LinearSVC(C=0.5, probability=False, degree=3, coef0=0.0, tol=0.001,
> shrinking=True, gamma=0.01)
Also, notice that I had to use gs.best_estimator_, and not gs.best_estimator,
and also that the module name for me is sklearn and not scikits.learn.
Has there been a change in recent versions? And why is the result different?
Thank you,
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general