Skip to content

Commit cab4f59

Browse files
Merge branch 'adapt-python:master' into master
2 parents 32b54ae + e18e205 commit cab4f59

File tree

135 files changed

+6931
-632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+6931
-632
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ The purpose of the ADAPT library is to facilitate the access to transfer leanrin
1818
<table>
1919
<tr valign="top">
2020
<td width="50%" >
21-
<a href="doc/examples/Sample_bias_example.html">
21+
<a href="https://adapt-python.github.io/adapt/examples/Sample_bias_example.html">
2222
<br>
2323
<b>Sample bias correction</b>
2424
<br>
2525
<br>
26-
<img src="src_docs/_static/images/sample_bias_corr_img.png">
26+
<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/sample_bias_corr_img.png">
2727
</a>
2828
</td>
2929
<td width="50%">
30-
<a href="doc/examples/Flowers_example.html">
30+
<a href="https://adapt-python.github.io/adapt/examples/Flowers_example.html">
3131
<br>
3232
<b>Model-based Transfer</b>
3333
<br>
3434
<br>
35-
<img src="src_docs/_static/images/finetuned.png">
35+
<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/finetuned.png">
3636
</a>
3737
</td>
3838
</tr>
3939
<tr valign="top">
4040
<td width="50%">
41-
<a href="doc/examples/Flowers_example.html">
41+
<a href="https://adapt-python.github.io/adapt/examples/Office_example.html">
4242
<br>
4343
<b>Deep Domain Adaptation</b>
4444
<br>
4545
<br>
46-
<img src="src_docs/_static/images/office_item.png">
46+
<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/office_item.png">
4747
</a>
4848
</td>
4949
<td width="50%">
@@ -85,7 +85,7 @@ Finally import the module in your python scripts with:
8585
import adapt
8686
```
8787

88-
An simple example of usage is given in the [Qick-Start](#Quick-Start) below.
88+
A simple example of usage is given in the [Qick-Start](#Quick-Start) below.
8989

9090

9191
## ADAPT Guideline
@@ -217,9 +217,9 @@ adapt_model.score(Xt, yt)
217217
>>> 0.574
218218
```
219219

220-
| <img src="src_docs/_static/images/results_qs.png"> |
220+
| <img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/results_qs.png"> |
221221
|:--:|
222-
| **Quick-Start Plotting Results**. *The dotted and dashed lines are respectively the class separation of the "source only" and KMM models. Note that the predicted positive class is on the right of the dotted line for the "source only" model but on the left of the dashed line for KMM. (The code for plotting the Figure is available [here](docs/examples/Quick_start.html))* |
222+
| **Quick-Start Plotting Results**. *The dotted and dashed lines are respectively the class separation of the "source only" and KMM models. Note that the predicted positive class is on the right of the dotted line for the "source only" model but on the left of the dashed line for KMM. (The code for plotting the Figure is available [here](https://adapt-python.github.io/adapt/examples/Quick_start.html))* |
223223

224224

225225
## Contents
@@ -285,4 +285,4 @@ If you use this library in your research, please cite ADAPT using the following
285285

286286
This work has been funded by Michelin and the Industrial Data Analytics and Machine Learning chair from ENS Paris-Saclay, Borelli center.
287287

288-
[<img src="src_docs/_static/images/michelin.png" width=200px alt="Michelin">](https://www.michelin.com/) <img src="src_docs/_static/images/idaml.jpg" width=200px alt="IDAML"> <img src="src_docs/_static/images/borelli.jpg" alt="Centre Borelli" width=150px>
288+
[<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/michelin.png" width=200px alt="Michelin">](https://www.michelin.com/) [<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/idaml.jpg" width=200px alt="IDAML">](https://centreborelli.ens-paris-saclay.fr/fr/chaire-idaml) [<img src="https://github.com/adapt-python/adapt/blob/41c13055facc0733faf49c4e3979709e82be10e5/docs/_static/images/borelli.jpg" alt="Centre Borelli" width=150px>](https://centreborelli.ens-paris-saclay.fr/fr)

docs/_images/deep_da.png

351 KB
Loading
15.8 KB
Loading
16.1 KB
Loading
15.2 KB
Loading
250 KB
Loading
17.1 KB
Loading
37.5 KB
Loading
24.9 KB
Loading
31.7 KB
Loading
71.3 KB
Loading
136 KB
Loading
24.3 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/_images/flowers.jpg

187 KB
Loading

docs/_images/sample_bias_img.png

233 KB
Loading

docs/_static/images/borelli.jpg

6.01 KB
Loading

docs/_static/images/deep_da.png

351 KB
Loading

docs/_static/images/finetuned.png

594 KB
Loading

docs/_static/images/flowers.jpg

187 KB
Loading

docs/_static/images/idaml.jpg

57.7 KB
Loading

docs/_static/images/michelin.png

4.96 KB
Loading

docs/_static/images/office_item.png

311 KB
Loading

docs/_static/images/results_qs.png

24.3 KB
Loading
85.7 KB
Loading
233 KB
Loading
44.3 KB
Loading

docs/contents.html

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<p class="caption" role="heading"><span class="caption-text">Tutorials</span></p>
5050
<ul>
5151
<li class="toctree-l1"><a class="reference internal" href="map.html">Choosing the right algorithm</a></li>
52+
<li class="toctree-l1"><a class="reference internal" href="examples/Quick_start.html">Quick-Start</a></li>
5253
</ul>
5354
<p class="caption" role="heading"><span class="caption-text">API Documentation</span></p>
5455
<ul>
@@ -118,7 +119,7 @@
118119
</ul>
119120
</li>
120121
</ul>
121-
<p class="caption" role="heading"><span class="caption-text">Examples Gallery</span></p>
122+
<p class="caption" role="heading"><span class="caption-text">Synthetic Examples</span></p>
122123
<ul>
123124
<li class="toctree-l1"><a class="reference internal" href="examples/Classification.html">Classification</a><ul>
124125
<li class="toctree-l2"><a class="reference internal" href="examples/Classification.html#Experimental-Setup">Experimental Setup</a></li>
@@ -181,13 +182,31 @@
181182
<li class="toctree-l2"><a class="reference internal" href="examples/Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
182183
</ul>
183184
</li>
185+
</ul>
186+
<p class="caption" role="heading"><span class="caption-text">Real Examples</span></p>
187+
<ul>
188+
<li class="toctree-l1"><a class="reference internal" href="examples/Sample_bias_example.html">Sample Bias</a><ul>
189+
<li class="toctree-l2"><a class="reference internal" href="examples/Sample_bias_example.html#Sample-Bias-on-the-diabetes-dataset">Diabetes Dataset</a></li>
190+
<li class="toctree-l2"><a class="reference internal" href="examples/Sample_bias_example.html#Applying-Transfer-Learning-for-correcting-sample-bias">Sample bias correction</a></li>
191+
<li class="toctree-l2"><a class="reference internal" href="examples/Sample_bias_example.html#Hidden-bias-and-features-importance-estimation">Features importance</a></li>
192+
</ul>
193+
</li>
194+
<li class="toctree-l1"><a class="reference internal" href="examples/Flowers_example.html">Fine-Tuning</a><ul>
195+
<li class="toctree-l2"><a class="reference internal" href="examples/Flowers_example.html#Training-a-model-from-scratch">Train from Scratch</a></li>
196+
<li class="toctree-l2"><a class="reference internal" href="examples/Flowers_example.html#Model-based-Transfer">Model-based Transfer</a></li>
197+
</ul>
198+
</li>
199+
<li class="toctree-l1"><a class="reference internal" href="examples/Office_example.html">Deep Domain Adaptation</a><ul>
200+
<li class="toctree-l2"><a class="reference internal" href="examples/Office_example.html#Dataset-Preprocessing">Dataset Preprocessing</a></li>
201+
<li class="toctree-l2"><a class="reference internal" href="examples/Office_example.html#Fit-without-adaptation">Fit without adaptation</a></li>
202+
<li class="toctree-l2"><a class="reference internal" href="examples/Office_example.html#Fit-with-adaptation">Fit with adaptation</a></li>
203+
</ul>
204+
</li>
184205
<li class="toctree-l1"><a class="reference internal" href="examples/tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
185206
<li class="toctree-l2"><a class="reference internal" href="examples/tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
186207
<li class="toctree-l2"><a class="reference internal" href="examples/tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
187208
</ul>
188209
</li>
189-
190-
191210
</ul>
192211

193212
</div>
@@ -353,7 +372,7 @@ <h1>ADAPT<a class="headerlink" href="#adapt" title="Permalink to this headline">
353372
<td><p>Two Stage Transfer AdaBoost for Regression</p></td>
354373
</tr>
355374
<tr class="row-even"><td><p><a class="reference internal" href="generated/adapt.instance_based.WANN.html#adapt.instance_based.WANN" title="adapt.instance_based.WANN"><code class="xref py py-obj docutils literal notranslate"><span class="pre">instance_based.WANN</span></code></a>([task, weighter, Xt, ...])</p></td>
356-
<td><p>WANN: Weighting Adversarial Neural Network is an instance-based domain adaptation method suited for regression tasks.</p></td>
375+
<td><p>WANN : Weighting Adversarial Neural Network is an instance-based domain adaptation method suited for regression tasks.</p></td>
357376
</tr>
358377
</tbody>
359378
</table>
@@ -490,10 +509,22 @@ <h1>ADAPT<a class="headerlink" href="#adapt" title="Permalink to this headline">
490509
</table>
491510
</section>
492511
</section>
493-
<section id="examples-gallery">
494-
<span id="gallery"></span><h1>Examples Gallery<a class="headerlink" href="#examples-gallery" title="Permalink to this headline"></a></h1>
512+
<section id="synthetic-examples">
513+
<span id="gallery"></span><h1>Synthetic Examples<a class="headerlink" href="#synthetic-examples" title="Permalink to this headline"></a></h1>
495514
<div class="toctree-wrapper compound">
496515
</div>
516+
<div class="sphx-glr-thumbcontainer">
517+
<div class="figure align-center">
518+
<img alt="thumbnail" src="./_static/no_image.png" />
519+
<p class="caption">
520+
<span class="caption-text">
521+
<a class="reference internal" href="examples/Quick_start.html">
522+
<span class="std std-ref">Quick-Start</span>
523+
</a>
524+
</span>
525+
</p>
526+
</div>
527+
</div>
497528
<div class="sphx-glr-thumbcontainer">
498529
<div class="figure align-center">
499530
<img alt="thumbnail" src="./_images/examples_Classification_9_0.png" />
@@ -578,6 +609,47 @@ <h1>ADAPT<a class="headerlink" href="#adapt" title="Permalink to this headline">
578609
</p>
579610
</div>
580611
</div>
612+
<div class="sphx-glr-clear"></div></section>
613+
<section id="real-examples">
614+
<h1>Real Examples<a class="headerlink" href="#real-examples" title="Permalink to this headline"></a></h1>
615+
<div class="toctree-wrapper compound">
616+
</div>
617+
<div class="sphx-glr-thumbcontainer">
618+
<div class="figure align-center">
619+
<img alt="thumbnail" src="./_static/images/sample_bias_corr_img.png" />
620+
<p class="caption">
621+
<span class="caption-text">
622+
<a class="reference internal" href="examples/Sample_bias_example.html">
623+
<span class="std std-ref">Correcting Sample Bias with Transfer Leanring</span>
624+
</a>
625+
</span>
626+
</p>
627+
</div>
628+
</div>
629+
<div class="sphx-glr-thumbcontainer">
630+
<div class="figure align-center">
631+
<img alt="thumbnail" src="./_static/images/finetuned.png" />
632+
<p class="caption">
633+
<span class="caption-text">
634+
<a class="reference internal" href="examples/Flowers_example.html">
635+
<span class="std std-ref">Model-Based Transfer Learning</span>
636+
</a>
637+
</span>
638+
</p>
639+
</div>
640+
</div>
641+
<div class="sphx-glr-thumbcontainer">
642+
<div class="figure align-center">
643+
<img alt="thumbnail" src="./_static/images/office_item.png" />
644+
<p class="caption">
645+
<span class="caption-text">
646+
<a class="reference internal" href="examples/Office_example.html">
647+
<span class="std std-ref">Deep Domain Adaptation: Transfer one domain to another</span>
648+
</a>
649+
</span>
650+
</p>
651+
</div>
652+
</div>
581653
<div class="sphx-glr-thumbcontainer">
582654
<div class="figure align-center">
583655
<img alt="thumbnail" src="./_static/no_image.png" />

docs/examples/Classification.html

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<p class="caption" role="heading"><span class="caption-text">Tutorials</span></p>
5050
<ul>
5151
<li class="toctree-l1"><a class="reference internal" href="../map.html">Choosing the right algorithm</a></li>
52+
<li class="toctree-l1"><a class="reference internal" href="Quick_start.html">Quick-Start</a></li>
5253
</ul>
5354
<p class="caption" role="heading"><span class="caption-text">API Documentation</span></p>
5455
<ul>
@@ -118,7 +119,7 @@
118119
</ul>
119120
</li>
120121
</ul>
121-
<p class="caption" role="heading"><span class="caption-text">Examples Gallery</span></p>
122+
<p class="caption" role="heading"><span class="caption-text">Synthetic Examples</span></p>
122123
<ul>
123124
<li class="toctree-l1"><a class="reference internal" href="#">Classification</a><ul>
124125
<li class="toctree-l2"><a class="reference internal" href="#Experimental-Setup">Experimental Setup</a></li>
@@ -181,13 +182,31 @@
181182
<li class="toctree-l2"><a class="reference internal" href="Multi_fidelity.html#RegularTransferNN">RegularTransferNN</a></li>
182183
</ul>
183184
</li>
185+
</ul>
186+
<p class="caption" role="heading"><span class="caption-text">Real Examples</span></p>
187+
<ul>
188+
<li class="toctree-l1"><a class="reference internal" href="Sample_bias_example.html">Sample Bias</a><ul>
189+
<li class="toctree-l2"><a class="reference internal" href="Sample_bias_example.html#Sample-Bias-on-the-diabetes-dataset">Diabetes Dataset</a></li>
190+
<li class="toctree-l2"><a class="reference internal" href="Sample_bias_example.html#Applying-Transfer-Learning-for-correcting-sample-bias">Sample bias correction</a></li>
191+
<li class="toctree-l2"><a class="reference internal" href="Sample_bias_example.html#Hidden-bias-and-features-importance-estimation">Features importance</a></li>
192+
</ul>
193+
</li>
194+
<li class="toctree-l1"><a class="reference internal" href="Flowers_example.html">Fine-Tuning</a><ul>
195+
<li class="toctree-l2"><a class="reference internal" href="Flowers_example.html#Training-a-model-from-scratch">Train from Scratch</a></li>
196+
<li class="toctree-l2"><a class="reference internal" href="Flowers_example.html#Model-based-Transfer">Model-based Transfer</a></li>
197+
</ul>
198+
</li>
199+
<li class="toctree-l1"><a class="reference internal" href="Office_example.html">Deep Domain Adaptation</a><ul>
200+
<li class="toctree-l2"><a class="reference internal" href="Office_example.html#Dataset-Preprocessing">Dataset Preprocessing</a></li>
201+
<li class="toctree-l2"><a class="reference internal" href="Office_example.html#Fit-without-adaptation">Fit without adaptation</a></li>
202+
<li class="toctree-l2"><a class="reference internal" href="Office_example.html#Fit-with-adaptation">Fit with adaptation</a></li>
203+
</ul>
204+
</li>
184205
<li class="toctree-l1"><a class="reference internal" href="tradaboost_experiments.html">TrAdaBoost Experiments</a><ul>
185206
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#Mushrooms">Mushrooms</a></li>
186207
<li class="toctree-l2"><a class="reference internal" href="tradaboost_experiments.html#20-NewsGroup">20-NewsGroup</a></li>
187208
</ul>
188209
</li>
189-
190-
191210
</ul>
192211

193212
</div>
@@ -485,8 +504,8 @@
485504
</style>
486505
<section id="Classification">
487506
<h1>Classification<a class="headerlink" href="#Classification" title="Permalink to this headline"></a></h1>
488-
<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>
489-
</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>
507+
<div class="btn btn-notebook" role="button"><p><img alt="dda7d7dd3db14ac69e4918e30af9deca" 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>
508+
</div><div class="btn btn-notebook" role="button"><p><img alt="2f3cd66b341b4a609e2fc4334bdc16d6" 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>
490509
</div><p>You will find here the application of DA methods from the ADAPT package on a simple two dimensional DA classification problem.</p>
491510
<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>
492511
<div class="nbinput nblast docutils container">

0 commit comments

Comments
 (0)