Code for the submission “Limitations of the Empirical Fisher Approximation”

To run the code, you will have to install the packages provided in the libs folder (move to libs/eftk and libs/efplt and run pip install .)

The code depends on the following packages; numpy, scipy, matplotlib, tqdm and scikit-learn, all available through pip install [x].

The code assume that the datasets (the content of datasets.zip) is stored in a data folder in your home, ~/data.

The main file to run the experiment is experiments/main.py.
Calling python experiments/main.py -h should output the following help:

usage: main.py [-h] (-misspec | -optim | -vecfield) [-run] [-plot] [-appendix]
               [-save] [-show]

Experiment Runner

optional arguments:
  -h, --help  show this help message and exit

Experiment selection:
  -misspec    Misspecification experiment
  -optim      Optimization experiment
  -vecfield   Vector field visualization

Action selection:
  At least one of [-run, -plot] is required

  -run        Runs the experiment and save results as a .pk file
  -plot       Plots the result from a .pk file (requires -save and/or -show)
  -appendix   Also run/plot the experiments in the appendix

Plotting options:
  At least one of [-save, -show] is required if plotting

  -save       Save the plots
  -show       Show the plots

The figures are generated using Matplotlib's Latex backend, and thus need a working latex installation. On Ubuntu, you might need to install apt-get install dvipng