The rfsd package was used produce the experiments for:

Jonathan H. Huggins, Lester Mackey. Random Feature Stein Discrepancies. In Proc. of the 32nd Annual Conference on Neural Information Processing Systems (NIPS), 2018.


To rfsd package requires you to install the kgof package:

pip install git+


pip install git+

The experiments from the paper can be reproduced by running each script with its default arguments. Or, in the case of, once with each of the commmands null, laplace, student-t, and rbm.