The problem is caused by the fact the all the CV scores are null:
ipdb> p cv_scores
array([[ 0., 0., 0.],
[ 0., 0., 0.]])
and there is no best_estimator_ in that case.
I think the grid search object should issue a warning and arbitrarily
return set the first model as `best_estimator_`.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general