:orphan:

Examples gallery
================

This is a gallery of all the SKADA example files. 



.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is a short example to get started with SKADA and perform domain adaptation on a simple dataset. It illustrates the API choice specific to DA.">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_plot_how_to_use_skada_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plot_how_to_use_skada.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">How to use SKADA</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip=" In this example we plot the logos of the SKADA toolbox.">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_plot_skada_logo_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plot_skada_logo.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">SKADA logo generation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A comparison of a several methods of DA in skada on synthetic datasets. The point of this example is to illustrate the nature of decision boundaries of different methods. This should be taken with a grain of salt, as the intuition conveyed by these examples does not necessarily carry over to real datasets.">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_plot_method_comparison_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_plot_method_comparison.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Comparison of DA classification methods</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/plot_how_to_use_skada
   /auto_examples/plot_skada_logo
   /auto_examples/plot_method_comparison



Domain Adaptation Datasets
--------------------------


.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the make_shifted_dataset dataset generator. Each method consists of generating source data and shifted target data. We illustrate here: covariate shift, target shift, concept drift, and sample bias. See detailed description of each shift in [1]_.">

.. only:: html

  .. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_shifted_dataset_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_datasets_plot_shifted_dataset.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot dataset source domain and shifted target domain</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the make_shifted_dataset dataset generator. Each method consists of generating source data and shifted target data. We illustrate here: covariate shift, target shift, concept drift, and sample bias. See detailed description of each shift in [1]_.">

.. only:: html

  .. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_shifted_dataset_regression_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_datasets_plot_shifted_dataset_regression.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot dataset source domain and shifted target domain</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the make_variable_frequency_dataset dataset generator. Each method consists of generating source data and shifted target data.">

.. only:: html

  .. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_variable_frequency_dataset_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_datasets_plot_variable_frequency_dataset.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot dataset source domain and shifted target domain</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This illustrates the make_dataset_from_moons_distribution dataset generator. Each method consists of generating source data and shifted target data.">

.. only:: html

  .. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_dataset_from_moons_distribution_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_datasets_plot_dataset_from_moons_distribution.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plot dataset source domain and shifted target domain</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/datasets/plot_shifted_dataset
   /auto_examples/datasets/plot_shifted_dataset_regression
   /auto_examples/datasets/plot_variable_frequency_dataset
   /auto_examples/datasets/plot_dataset_from_moons_distribution


Deep learning DA methods
------------------------


.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the DeepCoral method from [1] on a simple image classification task.">

.. only:: html

  .. image:: /auto_examples/deep/images/thumb/sphx_glr_plot_divergence_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_deep_plot_divergence.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Divergence domain adaptation methods.</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the adversarial methods from on a simple image classification task.">

.. only:: html

  .. image:: /auto_examples/deep/images/thumb/sphx_glr_plot_adversarial_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_deep_plot_adversarial.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Adversarial domain adaptation methods.</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the Optimal Transport deep DA method from on a simple image classification task.">

.. only:: html

  .. image:: /auto_examples/deep/images/thumb/sphx_glr_plot_optimal_transport_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_deep_plot_optimal_transport.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Optimal transport domain adaptation methods.</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of deep DA methods in Skada. on a simple image classification task.">

.. only:: html

  .. image:: /auto_examples/deep/images/thumb/sphx_glr_plot_training_method_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_deep_plot_training_method.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Training setup for deep DA method.</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/deep/plot_divergence
   /auto_examples/deep/plot_adversarial
   /auto_examples/deep/plot_optimal_transport
   /auto_examples/deep/plot_training_method


DA methods
----------


.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of the MultiLinearMongeAlignmentAdapter">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_monge_alignment_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_monge_alignment_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Multi-domain Linear Monge Alignment</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the DASVM method from [21].">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_dasvm_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_dasvm.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">DASVM classifier example</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use the JDOTRegressor [10] to learn a regression model from source to target domain on a simple concept drift 2D example. We use a simple Kernel Ridge Regression (KRR) as base estimator.">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_jdot_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_jdot_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">JDOT Regressor and Classifier examples</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of the subspace methods on a dataset subject to subspace shift">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_subspace_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_subspace.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Subspace method example on subspace shift dataset</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="An example of the reweighting methods on a dataset subject to covariate shift">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_reweighting_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_reweighting.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Reweighting method example on covariate shift dataset</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use how to use label propagation methods to perform domain adaptation. This is done by propagating labels from the source domain to the target domain using the OT plan. This was proposed originally in [28]_ for semi-supervised learning but can be used for DA.">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_label_prop_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_label_prop_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Label Propagation methods</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the OTDA method from [1] on a simple classification task.">

.. only:: html

  .. image:: /auto_examples/methods/images/thumb/sphx_glr_plot_optimal_transport_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_methods_plot_optimal_transport_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Optimal Transport Domain Adaptation (OTDA)</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/methods/plot_monge_alignment_da
   /auto_examples/methods/plot_dasvm
   /auto_examples/methods/plot_jdot_da
   /auto_examples/methods/plot_subspace
   /auto_examples/methods/plot_reweighting
   /auto_examples/methods/plot_label_prop_da
   /auto_examples/methods/plot_optimal_transport_da


DA validation procedures
------------------------


.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of DA scorer such as ImportanceWeightedScorer with GridSearchCV.">

.. only:: html

  .. image:: /auto_examples/validation/images/thumb/sphx_glr_plot_gridsearch_for_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_validation_plot_gridsearch_for_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Using GridSearchCV with skada</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of DA scorer such as TargetAccuracyScorer with cross_val_score.">

.. only:: html

  .. image:: /auto_examples/validation/images/thumb/sphx_glr_plot_cross_val_score_for_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_validation_plot_cross_val_score_for_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Using cross_val_score with skada</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of DA cross-validation object such as DomainShuffleSplit.">

.. only:: html

  .. image:: /auto_examples/validation/images/thumb/sphx_glr_plot_cross_validation_for_da_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_validation_plot_cross_validation_for_da.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Visualizing cross-validation behavior in skada</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/validation/plot_gridsearch_for_da
   /auto_examples/validation/plot_cross_val_score_for_da
   /auto_examples/validation/plot_cross_validation_for_da


.. 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>`_