GitHub - google-deepmind/mc_gradients · GitHub
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Branches Tags Open more actions menu Latest commit History 10 Commits 10 Commits Folders and files Name Name Last commit message Last commit date monte_carlo_gradients monte_carlo_gradients CONTRIBUTING.md CONTRIBUTING.md LICENSE LICENSE README.md README.md Repository files navigation Monte Carlo Gradient Estimation in Machine Learning This is the example code for the following paper.
If you use the code here please cite this paper. Shakir Mohamed, Mihaela Rosca, Michael Figurnov, Andriy Mnih Monte Carlo Gradient Estimation in Machine Learning . [arXiv] . Running the code The code contains: the implementation the score function, pathwise and measure valued estimators gradient_estimators.py and their tests to ensure unbiasedness gradient_estimators_test.py . the implementation of control variates control_variates.py and their tests control_variates_tests.py . a main.py file to reproduce the Bayesian Logistic regression experiments in the paper. a config.py file used to configure experiments.
To run the code and install the required dependencies: source monte_carlo_gradients/run.sh To run a test: python3 -m monte_carlo_gradients.gradient_estimators_test Colab You can run the code in the browser using Colab . The experiments from Section 3 can be reproduced using the following link: Intuitive Analysis of Gradient Estimators Disclaimer This is not an official Google product. About No description, website, or topics provided.
Resources Readme Apache-2.0 license Contributing Contributing Activity Custom properties Stars 175 stars Watchers 8 watching Forks 36 forks Report repository Releases Packages Used by Contributors Languages You can’t perform that action at this time.