Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 11, 2022
1 parent f56f6a1 commit 586bcc0
Show file tree
Hide file tree
Showing 97 changed files with 2,134 additions and 23 deletions.
16 changes: 16 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,19 @@ img.map-adapt {
#selecting-the-right-domain-adaptation-model {
padding-bottom: 600px;
}


blockquote {
border-left: 5px solid #D3D3D3;
padding: 0 1em;
}


div.alert.alert-block.alert-info {
background: #e7f2fa;
padding: 12px;
margin-bottom: 12px;
border-top-color: #6ab0de;
border-top-width: 12px;
border-top-style: solid;
}
21 changes: 20 additions & 1 deletion docs/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="examples/Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="examples/tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="examples/tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples/tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -440,7 +447,7 @@ <h1>ADAPT<a class="headerlink" href="#adapt" title="Permalink to this headline">
<tr class="row-even"><td><p><a class="reference internal" href="generated/adapt.utils.accuracy.html#adapt.utils.accuracy" title="adapt.utils.accuracy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">utils.accuracy</span></code></a>(y_true, y_pred)</p></td>
<td><p>Custom accuracy function which can handle probas vector in both binary and multi classification</p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/adapt.utils.check_arrays.html#adapt.utils.check_arrays" title="adapt.utils.check_arrays"><code class="xref py py-obj docutils literal notranslate"><span class="pre">utils.check_arrays</span></code></a>(X, y)</p></td>
<tr class="row-odd"><td><p><a class="reference internal" href="generated/adapt.utils.check_arrays.html#adapt.utils.check_arrays" title="adapt.utils.check_arrays"><code class="xref py py-obj docutils literal notranslate"><span class="pre">utils.check_arrays</span></code></a>(X, y, **kwargs)</p></td>
<td><p>Check arrays and reshape 1D array in 2D array of shape (-1, 1).</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="generated/adapt.utils.check_estimator.html#adapt.utils.check_estimator" title="adapt.utils.check_estimator"><code class="xref py py-obj docutils literal notranslate"><span class="pre">utils.check_estimator</span></code></a>([estimator, copy, ...])</p></td>
Expand Down Expand Up @@ -571,6 +578,18 @@ <h1>ADAPT<a class="headerlink" href="#adapt" title="Permalink to this headline">
</p>
</div>
</div>
<div class="sphx-glr-thumbcontainer">
<div class="figure align-center">
<img alt="thumbnail" src="./_static/no_image.png" />
<p class="caption">
<span class="caption-text">
<a class="reference internal" href="examples/tradaboost_experiments.html">
<span class="std std-ref">Reproduction of the TrAdaBoost experiments</span>
</a>
</span>
</p>
</div>
</div>
<div class="sphx-glr-clear"></div></section>


Expand Down
11 changes: 9 additions & 2 deletions docs/examples/Classification.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Classification">
<h1>Classification<a class="headerlink" href="#Classification" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="7d3a3b28b0f74e78bfa0fc52c3456b1e" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1ANQUix9Y6V4RXu-vAaCFGmU979d5m4bO?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="185060b5f0d34e42bf0fe659ce25e540" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Classification.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="475376cff1634f1d89b22c3f2e3f6411" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1ANQUix9Y6V4RXu-vAaCFGmU979d5m4bO?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="209d341613514b4dad564fdb33156135" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Classification.ipynb">View on GitHub</a></p>
</div><p>You will find here the application of DA methods from the ADAPT package on a simple two dimensional DA classification problem.</p>
<p>First we import packages needed in the following. We will use <code class="docutils literal notranslate"><span class="pre">matplotlib</span> <span class="pre">Animation</span></code> tools in order to get a visual understanding of the mselected methods:</p>
<div class="nbinput nblast docutils container">
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/Multi_fidelity.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Multi-Fidelity">
<h1>Multi-Fidelity<a class="headerlink" href="#Multi-Fidelity" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="2cb04df9d25e4a5d9f33c4ca995536ec" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Cc9TVY_Tl_boVzZDNisQnqe6Qx78svqe?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="532b34ba0bb048abb10480d897b56cfd" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Multi_fidelity.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="e5919070374a45ba8a8edebd8dfbcaff" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Cc9TVY_Tl_boVzZDNisQnqe6Qx78svqe?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="9051ac25304f4e198a59669626254d15" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Multi_fidelity.ipynb">View on GitHub</a></p>
</div><p>The following example is a 1D regression multi-fidelity issue. Blue points are low fidelity observations and orange points are high fidelity observations. The goal is to use both datasets to learn the task on the [0, 1] interval.</p>
<p>To tackle this challenge, we use here the parameter-based method: <a class="reference external" href="#RegularTransferNN">RegularTransferNN</a></p>
<div class="nbinput nblast docutils container">
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/Regression.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Toy-Regression">
<h1>Toy Regression<a class="headerlink" href="#Toy-Regression" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="67ee9f06163c4803af3baf522a13f11c" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1adhqoV6b0uEavLDmMfkiwtRjam0DrXux?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="2062a87673f04f2ba0e0e4f78a94694f" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Regression.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="31c0a52db0774516bfc13af3fb437754" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1adhqoV6b0uEavLDmMfkiwtRjam0DrXux?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="00abb21afee64de8aead4372bc62c81d" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Regression.ipynb">View on GitHub</a></p>
</div><p>You will find here the application of DA methods from the ADAPT package on a simple one dimensional DA regression problem.</p>
<p>First we import packages needed in the following. We will use <code class="docutils literal notranslate"><span class="pre">matplotlib</span> <span class="pre">Animation</span></code> tools in order to get a visual understanding of the selected methods:</p>
<div class="nbinput nblast docutils container">
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/Rotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Rotation">
<h1>Rotation<a class="headerlink" href="#Rotation" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="cf8e6b5ca909497caf99c1844f5b6462" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1XePW12UF80PKzvLu9cyRJKWQoZIxk_J2?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="e0fff568b24a40b8833e086904618346" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Rotation.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="418fcc51e192497db073d9ba4cb246e6" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1XePW12UF80PKzvLu9cyRJKWQoZIxk_J2?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="773fca7d8d4d4e3eac218bc603cc560f" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Rotation.ipynb">View on GitHub</a></p>
</div><div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[2]:
</pre></div>
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/Two_moons.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Two-Moons">
<h1>Two Moons<a class="headerlink" href="#Two-Moons" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="d453d0186b53454888325a3b4deed146" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Tz-TIkHI8ashHP90Im6D3tMjZ3lkR7s6?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="bfbb3152065744b7ad9b0888adbd288e" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Two_moons.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="c0b8d4191bdb421f896c1c898646dc9f" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Tz-TIkHI8ashHP90Im6D3tMjZ3lkR7s6?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="c0ef47f3c47745be81c7cfad0590c07e" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/Two_moons.ipynb">View on GitHub</a></p>
</div><p>The following example is a binary classification domain adaptation issue. The goal is to learn the classification task on the target data (black points) knowing only the labels on the source data (red and blue points).</p>
<p>The following methods are being tested:</p>
<ul class="simple">
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/sample_bias.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Sample-Bias-1D">
<h1>Sample Bias 1D<a class="headerlink" href="#Sample-Bias-1D" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="d6b41bf45f3a4efdb8d2b0f2fe9b123e" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Hbg2kDXKjKzeQKJSwxzaV7pwbmORhyA3?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="8e3f89eba87346439ee0dcaae75b85cd" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/sample_bias.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="2111c96ff50d4fb0810f107b9bf89618" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/1Hbg2kDXKjKzeQKJSwxzaV7pwbmORhyA3?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="e88e0d3dd6a74975987f777e246a2f32" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/sample_bias.ipynb">View on GitHub</a></p>
</div><p>The following example is a 1D regression domain adaptation issue. The goal is to learn the regression task on the target data (orange points) knowing only the labels on the source data (blue points).</p>
<p>In this example, there is a sample bias between the source and target datasets. The sources are drawn according to a gaussian distribution whereas the targets are uniformly distributed.</p>
<p>The following methods are being tested:</p>
Expand Down
11 changes: 9 additions & 2 deletions docs/examples/sample_bias_2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
</ul>
</li>


</ul>

</div>
Expand Down Expand Up @@ -478,8 +485,8 @@
</style>
<section id="Sample-Bias-2D">
<h1>Sample Bias 2D<a class="headerlink" href="#Sample-Bias-2D" title="Permalink to this headline"></a></h1>
<div class="btn btn-notebook" role="button"><p><img alt="77b958e28c204646b1a0a16f41b71257" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/12_9rgPXobyeaKYlXh_fJPNfrbODdvuHY?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="647f8589ae654d45a6d6daf483804cd0" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/sample_bias_2d.ipynb">View on GitHub</a></p>
<div class="btn btn-notebook" role="button"><p><img alt="a73aba5ad6e549eea64509d2ee41c95f" src="../_images/colab_logo_32px.png" /> <a class="reference external" href="https://colab.research.google.com/drive/12_9rgPXobyeaKYlXh_fJPNfrbODdvuHY?usp=sharing">Run in Google Colab</a></p>
</div><div class="btn btn-notebook" role="button"><p><img alt="efe320e090824095bdb381b1b239be66" src="../_images/github_logo_32px.png" /> <a class="reference external" href="https://github.com/adapt-python/notebooks/blob/d0364973c642ea4880756cef4e9f2ee8bb5e8495/sample_bias_2d.ipynb">View on GitHub</a></p>
</div><p>The following example is a 2D regression domain adaptation issue. The goal is to learn the regression task on the target data (orange points) knowing only the labels on the source data (blue points).</p>
<p>In this example, there is a sample bias between the source and target datasets. The sources are mostly located in X1=0 whereas the targets are uniformly distributed.</p>
<p>The following methods are being tested:</p>
Expand Down
Loading

0 comments on commit 586bcc0

Please sign in to comment.