:orphan:

.. _general_examples:

Examples
========

Miscellaneous examples
----------------------

Miscellaneous and introductory examples for scikit-optimize.



.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Tim Head, February 2017. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_ask-and-tell_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ask-and-tell.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Async optimization Loop</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Gilles Louppe, Manoj Kumar July 2016. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_bayesian-optimization_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_bayesian-optimization.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Bayesian optimization with skopt</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Tim Head, July 2016. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_strategy-comparison_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_strategy-comparison.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Comparing surrogate models</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Sigurd Carlen, September 2019. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_exploration-vs-exploitation_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_exploration-vs-exploitation.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Exploration vs exploitation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Christian Schell, Mai 2018 Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_interruptible-optimization_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_interruptible-optimization.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Interruptible optimization runs with checkpoints</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Iaroslav Shcherbatyi, May 2017. Reviewed by Manoj Kumar and Tim Head. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_parallel-optimization_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_parallel-optimization.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Parallel optimization</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Iaroslav Shcherbatyi, Tim Head and Gilles Louppe. June 2017. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_sklearn-gridsearchcv-replacement_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_sklearn-gridsearchcv-replacement.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Scikit-learn hyperparameter search wrapper</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Mikhail Pak, October 2016. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_store-and-load-results_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_store-and-load-results.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Store and load skopt optimization results</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Gilles Louppe, July 2016 Katie Malone, August 2016 Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_hyperparameter-optimization_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_hyperparameter-optimization.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Tuning a scikit-learn estimator with skopt</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Sigurd Carlen, September 2019. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_optimizer-with-different-base-estimator_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_optimizer-with-different-base-estimator.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Use different base estimators for optimization</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/ask-and-tell
   /auto_examples/bayesian-optimization
   /auto_examples/strategy-comparison
   /auto_examples/exploration-vs-exploitation
   /auto_examples/interruptible-optimization
   /auto_examples/parallel-optimization
   /auto_examples/sklearn-gridsearchcv-replacement
   /auto_examples/store-and-load-results
   /auto_examples/hyperparameter-optimization
   /auto_examples/optimizer-with-different-base-estimator


Plotting functions
------------------

Examples concerning the :mod:`skopt.plots` module.



.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Sigurd Carlsen Feb 2019 Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/plots/images/thumb/sphx_glr_partial-dependence-plot_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plots_partial-dependence-plot.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Partial Dependence Plots</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Sigurd Carlsen Feb 2019 Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/plots/images/thumb/sphx_glr_partial-dependence-plot-with-categorical_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plots_partial-dependence-plot-with-categorical.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Partial Dependence Plots  with categorical values</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Hvass-Labs Dec 2017 Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/plots/images/thumb/sphx_glr_partial-dependence-plot-2D_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plots_partial-dependence-plot-2D.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Partial Dependence Plots 2D</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Tim Head, August 2016. Reformatted by Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/plots/images/thumb/sphx_glr_visualizing-results_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plots_visualizing-results.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Visualizing optimization results</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


Initial sampling functions
--------------------------

Examples concerning the :mod:`skopt.sampler` module.



.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Holger Nahrstaedt 2020">

.. only:: html

  .. image:: /auto_examples/sampler/images/thumb/sphx_glr_sampling_comparison_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_sampler_sampling_comparison.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Comparing initial point generation methods</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Holger Nahrstaedt 2020 Sigurd Carlsen October 2019">

.. only:: html

  .. image:: /auto_examples/sampler/images/thumb/sphx_glr_initial-sampling-method_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_sampler_initial-sampling-method.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Comparing initial sampling methods</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Holger Nahrstaedt 2020 Sigurd Carlsen October 2019">

.. only:: html

  .. image:: /auto_examples/sampler/images/thumb/sphx_glr_initial-sampling-method-integer_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_sampler_initial-sampling-method-integer.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Comparing initial sampling methods on integer space</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:
   :includehidden:


   /auto_examples/plots/index.rst
   /auto_examples/sampler/index.rst


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: auto_examples_python.zip </auto_examples/auto_examples_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip </auto_examples/auto_examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
