This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
Conversation
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
facebook-github-bot
added
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
fb-exported
labels
Apr 22, 2022
This pull request was exported from Phabricator. Differential Revision: D27111773 |
horizon-blue
added a commit
to horizon-blue/beanmachine
that referenced
this pull request
Apr 22, 2022
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: 8ca261af4b8a9ed3546b7296490f8e9b3d6e3db7
This pull request was exported from Phabricator. Differential Revision: D27111773 |
horizon-blue
force-pushed
the
export-D27111773
branch
from
April 22, 2022 03:55
11cf993
to
ade424f
Compare
horizon-blue
added a commit
to horizon-blue/beanmachine
that referenced
this pull request
Apr 22, 2022
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: 5f7deeb79a409484b9f7ad59ac9c73d21a091417
horizon-blue
force-pushed
the
export-D27111773
branch
from
April 22, 2022 05:25
ade424f
to
c4a719d
Compare
This pull request was exported from Phabricator. Differential Revision: D27111773 |
horizon-blue
added a commit
to horizon-blue/beanmachine
that referenced
this pull request
Apr 29, 2022
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: 5b9783a8020780a74887bf7ac6b695ec2ae00a90
horizon-blue
force-pushed
the
export-D27111773
branch
from
April 29, 2022 01:36
c4a719d
to
b6b345b
Compare
This pull request was exported from Phabricator. Differential Revision: D27111773 |
horizon-blue
added a commit
to horizon-blue/beanmachine
that referenced
this pull request
Apr 29, 2022
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: 83324048140a2dbad6b407493c6fabd2212d88dd
horizon-blue
force-pushed
the
export-D27111773
branch
from
April 29, 2022 04:09
b6b345b
to
8e771c4
Compare
This pull request was exported from Phabricator. Differential Revision: D27111773 |
horizon-blue
added a commit
to horizon-blue/beanmachine
that referenced
this pull request
Apr 29, 2022
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: a0e553206c521bccfcd6153569904e5665cf8982
horizon-blue
force-pushed
the
export-D27111773
branch
from
April 29, 2022 04:23
8e771c4
to
b7d8734
Compare
This pull request was exported from Phabricator. Differential Revision: D27111773 |
Summary: Pull Request resolved: facebookresearch#1415 This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code. The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download `minibm.py` and run it with ``` python minibm.py ``` The only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar). The goal of this file is to help developers get familiar with key Bean Machine concepts (such as `World` and `random_variable`), instead of providing a performant implementation. Reviewed By: jpchen Differential Revision: D27111773 fbshipit-source-id: b19d6d04c5132c279e4f8af361451779e2a068c0
horizon-blue
force-pushed
the
export-D27111773
branch
from
May 2, 2022 18:33
b7d8734
to
50e5787
Compare
This pull request was exported from Phabricator. Differential Revision: D27111773 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
fb-exported
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This diff introduces MiniBM, a minimal implementation of Bean Machine in a little bit more than 100 lines of code.
The script comes with an implementation of the Metropolis Hastings algorithm and a coin flipping model at the end. It is standalone, in that MiniBM does not depend on the Bean Machine framework at all. To try it out, you can simply download
minibm.py
and run it withThe only two dependencies for MiniBM are the PyTorch library and tqdm (for progress bar).
The goal of this file is to help developers get familiar with key Bean Machine concepts (such as
World
andrandom_variable
), instead of providing a performant implementation.Reviewed By: jpchen
Differential Revision: D27111773