All Projects → jgorham → stein_discrepancy

jgorham / stein_discrepancy

Licence: other
Code to compute the Stein discrepancy between a sample distribution and its target

Programming Languages

matlab
3953 projects
julia
2034 projects
python
139335 projects - #7 most used programming language
M
324 projects

Stein discrepancy experiments

This repo contains many experiments that utilize the Stein discrepancy. The experiments here use the Julia package SteinDiscrepancy.jl and implement all the experiments from the following papers:

All the papers above introduce and explain the significance of the Stein discrepancy. The first paper has a more gentle introduction describing how the Stein discrepancy bounds standard probability metrics like the Wasserstein distance.

So how do I run these experiments?

The code has all been tested on Julia v0.5. There is a file src/startup.jl which simply adds the paths of some modules to the LOAD_PATH variable. You should either simlink this file to ~/.juliarc.jl or add the lines from this file to your current .juliarc.jl.

There is a REQUIRE file that demarcates all the necessary packages needed to run all the experiments. All experiments should be run from the base directory of this repo. For example, the command

julia src/experiments/multimodal_gmm_langevin_floor --gap=5 --seed=10

would run the experiment in the file src/experiments/multimodal_gmm_langevin_floor.jl and pass in the parameters gap and seed (defined in the script) to be 5 and 10 respectively. All experiment results will be deposited in the directory results in the base directory.

For more information, see SteinDiscrepancy.jl.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].