

.. _sphx_glr_auto_examples_model_selection:

.. _model_selection_examples:

Model Selection
---------------

Examples related to the selection of balancing methods.



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="&#x27;Instance hardness&#x27; refers to the difficulty to classify an instance. The way hard-to-classify instances are distributed over train and test sets has significant effect on the test set performance metrics. In this example we show how to deal with this problem. We are making the comparison with normal StratifiedKFold cross-validation splitter.">

.. only:: html

  .. image:: /auto_examples/model_selection/images/thumb/sphx_glr_plot_instance_hardness_cv_thumb.png
    :alt:

  :doc:`/auto_examples/model_selection/plot_instance_hardness_cv`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Distribute hard-to-classify datapoints over CV folds</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example the impact of the SMOTE&#x27;s k_neighbors parameter is examined. In the plot you can see the validation scores of a SMOTE-CART classifier for different values of the SMOTE&#x27;s k_neighbors parameter.">

.. only:: html

  .. image:: /auto_examples/model_selection/images/thumb/sphx_glr_plot_validation_curve_thumb.png
    :alt:

  :doc:`/auto_examples/model_selection/plot_validation_curve`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plotting Validation Curves</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/model_selection/plot_instance_hardness_cv
   /auto_examples/model_selection/plot_validation_curve

