-
Notifications
You must be signed in to change notification settings - Fork 229
Remove Sampler
, remove InferenceAlgorithm
, transfer initialstep
, init_strategy
, and other functions from DynamicPPL to Turing
#2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
penelopeysm
wants to merge
10
commits into
py/dppl-0.38
Choose a base branch
from
py/sampler-fixes
base: py/dppl-0.38
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
42bfc8a
Remove `Sampler` and move its interface to Turing
penelopeysm b8fed72
Test fixes (this is admittedly quite tiring)
penelopeysm d9aa377
Fix a couple of Gibbs tests (no doubt there are more)
penelopeysm 90c3ed6
actually fix the Gibbs ones
penelopeysm b5e0760
actually fix it this time
penelopeysm 593af43
fix typo
penelopeysm 58b2ea9
point to breaking
penelopeysm 39e4d28
Merge branch 'py/dppl-0.38' into py/sampler-fixes
penelopeysm e9a4f1f
Improve loadstate implementation
penelopeysm 992b05a
Re-add tests that were removed from DynamicPPL
penelopeysm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,8 @@ export | |
maximum_a_posteriori, | ||
maximum_likelihood, | ||
MAP, | ||
MLE | ||
MLE, | ||
# Chain save/resume | ||
loadstate | ||
|
||
end |
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method of
step
is actually a little bit evil. It used to be less bad because it only applied toSampler{<:InferenceAlgorithm}
, but now it applies to allAbstractSampler
, which actually does cause some method ambiguities (which I've pointed out in my other comments).On top of that, this is just generally a bit inflexible when it comes to warmup steps since it's only defined as a method for
step
and notstep_warmup
.I think that in the next version of Turing this method should be removed. However, I've opted to preserve it for now because I don't want to make too many conceptual changes in this PR (the diff is already too large).