-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
laurence
committed
Aug 3, 2022
1 parent
ecc9de6
commit 02c969b
Showing
32 changed files
with
59 additions
and
792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*.idea/ | ||
*__pycache__/ | ||
/examples/paper_results/gmm/models/ | ||
/examples/paper_results/many_well/models/ | ||
/examples/many_well/models/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# GMM Problem | ||
## Experiments | ||
The following commands can each be used to train the methods from the paper: | ||
``` | ||
# FAB with prioritised buffer. | ||
python examples/gmm/run.py training.seed=0,1,2 training.use_buffer=True training.prioritised_buffer=True | ||
# FAB without the prioritised buffer. | ||
python examples/gmm/run.py training.seed=0,1,2 fab.loss_type=p2_over_q_alpha_2_div | ||
# Flow using ground truth samples, training by maximum likelihood/forward KL divergence minimiation. | ||
python examples/gmm/run.py training.seed=0,1,2 fab.loss_type=target_forward_kl | ||
# Flow using alpha-divergence, with alpha=2 | ||
python examples/gmm/run.py training.seed=0,1,2 fab.loss_type=flow_alpha_2_div_nis | ||
# Flow using reverse KL divergence | ||
python examples/gmm/run.py training.seed=0,1,2 fab.loss_type=flow_reverse_kld | ||
# SNF using reverse KLD | ||
python examples/gmm/run.py training.seed=0,1,2 flow.use_snf=True | ||
``` | ||
|
||
**Further notes** This will use hydra-multirun to run the random seeds in parallel. | ||
However, if you just want to run locally and get a general idea of the results, | ||
you can run a single random seed for a much lower number of iterations. | ||
The config file for this experiment is [here](../config/gmm.yaml), where you can change the hyper-parameters. | ||
|
||
## Evaluation | ||
Trained models may be evaluated using the code in | ||
[`evaluation.py`](evaluation.py) and [`evaluation_expectation_quadratic_func.py`](evaluation_expectation_quadratic_func.py). | ||
Furthermore [`results_vis.py`](results_vis.py) may be used to obtain the plot from the paper | ||
visualising each of the modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/paper_results/gmm/latex_table.py → examples/gmm/latex_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/paper_results/many_well/latex_table.py → examples/many_well/latex_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.