Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > e578866d55cd81fdb23827cdf3cec911 > files > 515

python-scikits-learn-0.6-1mdv2010.2.i586.rpm



.. _example_grid_search_digits.py:


=====================================================================
Parameter estimation using grid search with a nested cross-validation
=====================================================================

The classifier is optimized by "nested" cross-validation using the
GridSearchCV object.

The performance of the selected parameters is evaluated using
cross-validation (different than the nested cross-validation that is used
to select the best classifier).



**Python source code:** :download:`grid_search_digits.py <grid_search_digits.py>`

.. literalinclude:: grid_search_digits.py
    :lines: 14-