Content of this repository
--------------------------

The appendix material pdf is called `Appendix Kernel Trace Distance Neurips.pdf`

0. library/toolbox files:
- `distances.py` contains all the functions required to compute the proposed distance d_KT.
- `ABC.py` is a library to perform the ABC computations.

1. Effect of sigma on MMD and d_KT (Fig 1.) + results of end of section 3.2:
- run `plot_sigma_1.py`
- run `print_modes.py`

2. ABC experiment:
- run the experiment with `run_ABC_experiment.py`
- read table 2 (extension of table 1) numbers with `read_ABC_table.py`
- plot the posterior distributions of supplementary fig 4. and 5 with  `plot_ABC_posteriors_fig_6.py` and `plot_ABC_posteriors_fig_7.py`

4. Gradient flow:
- run `run_plot_gradient_flow.py` (un)commenting the desired distance to get Fig. 6 and 7
- supplementary results of shape transfer (Fig. 8) in the notebook `shape_transfer.ipynb`

3. Supplementary figures 2 and 3 (Appendix B.1):
- run files `plot_mean_fig_4.py` and `plot_std_fig_5.py`