Skip to content

Commit e70313c

Browse files
committed
add converted notebooks
1 parent 98ae080 commit e70313c

14 files changed

+4137
-8
lines changed

docs/cache_nbrun

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"plot_barycenter_1D.ipynb": "6fd8167f98816dc832fe0c58b1d5527b", "plot_otda_mapping.ipynb": "d335a15af828aaa3439a1c67570d79d6"}
1+
{"plot_otda_mapping_colors_images.ipynb": "4f0587a00a3c082799a75a0ed36e9ce1", "plot_optim_OTreg.ipynb": "71d3c106b3f395a6b1001078a6ca6f8d", "plot_barycenter_1D.ipynb": "6fd8167f98816dc832fe0c58b1d5527b", "plot_WDA.ipynb": "27f8de4c6d7db46497076523673eedfb", "plot_OT_L1_vs_L2.ipynb": "e15219bf651a7e39e7c5c3934069894c", "plot_otda_color_images.ipynb": "d047d635f4987c81072383241590e21f", "plot_otda_classes.ipynb": "44bb8cd93317b5d342cd62e26d9bbe60", "plot_otda_d2.ipynb": "8ac4fd2ff899df0858ce1e5fead37f33", "plot_otda_mapping.ipynb": "d335a15af828aaa3439a1c67570d79d6", "plot_compute_emd.ipynb": "bd95981189df6adcb113d9b360ead734", "plot_OT_1D.ipynb": "e44c83f6112388ae18657cb0ad76d0e9", "plot_OT_2D_samples.ipynb": "3f125714daa35ff3cfe5dae1f71265c4"}

docs/nb_run_conv

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import os
2020
cache_file='cache_nbrun'
2121

2222
path_doc='source/auto_examples/'
23-
path_nb='../../../notebooks/'
23+
path_nb='../notebooks/'
2424

2525
def load_json(fname):
2626
try:
@@ -58,8 +58,9 @@ def to_update(fname,cache):
5858
def update(fname,cache):
5959

6060
# jupyter nbconvert --to notebook --execute mynotebook.ipynb --output targte
61-
print(' '.join(['jupyter','nbconvert','--to','notebook','--execute',path_doc+fname,'--output',path_nb+fname]))
62-
subprocess.check_call(['jupyter','nbconvert','--to','notebook','--execute',path_doc+fname,'--output',path_nb+fname])
61+
subprocess.check_call(['cp',path_doc+fname,path_nb])
62+
print(' '.join(['jupyter','nbconvert','--to','notebook','--ExecutePreprocessor.timeout=600','--execute',path_nb+fname,'--inplace']))
63+
subprocess.check_call(['jupyter','nbconvert','--to','notebook','--ExecutePreprocessor.timeout=600','--execute',path_nb+fname,'--inplace'])
6364
cache[fname]=md5(path_doc+fname)
6465

6566

@@ -74,11 +75,8 @@ for fname in lst_file:
7475
if to_update(fname,cache):
7576
print('Updating file: {}'.format(fname))
7677
update(fname,cache)
78+
save_json(cache_file,cache)
7779

7880

7981

8082

81-
update(lst_file[0],cache)
82-
83-
84-
save_json(cache_file,cache)

notebooks/plot_OT_1D.ipynb

Lines changed: 247 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_OT_2D_samples.ipynb

Lines changed: 288 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_OT_L1_vs_L2.ipynb

Lines changed: 373 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_WDA.ipynb

Lines changed: 299 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_barycenter_1D.ipynb

Lines changed: 308 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_compute_emd.ipynb

Lines changed: 248 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_optim_OTreg.ipynb

Lines changed: 762 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/plot_otda_classes.ipynb

Lines changed: 313 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)