-
Notifications
You must be signed in to change notification settings - Fork 19
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
Use _init_parmas for MCMCThreads and MCMCDistributed too #126
Merged
Merged
Changes from 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6f5ac5a
use _init_parmas for MCMCThreads and MCMCDistributed too
torfjelde 8808521
bump patch version
torfjelde e2a04ba
added some tests for too many and too few init params
torfjelde 2e6e23d
fixed typo in tests
torfjelde e897b8a
remove _first_or_nothing and just check if init_params is of the righ…
torfjelde 33f9bb7
fix typo in error message
torfjelde 85deddb
bump minor version
torfjelde c985383
use `collect` for init_params when using MCMCThreads
torfjelde fc3dd21
check if init_params is nothing before collect
torfjelde d2e2a9b
Update src/sample.jl
torfjelde 93a4f1b
fuxed error message
torfjelde 95d8bfb
Merge remote-tracking branch 'origin/torfjelde/init-params-fix' into …
torfjelde 3e87987
require init_params to be a vector of length equal to the nubmer of
torfjelde 3c1ed50
updated docs
torfjelde ae6562f
bump minor version since this will be potentially breaking
torfjelde e1bb661
replaced usages of Iterators.repeated with FillArrays.Fill
torfjelde eaf9d50
added FillArrays as a test dep
torfjelde 4dbcb3f
fixed runtests
torfjelde 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 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 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 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
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.
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.
So
_first_or_nothing
doesn't actually care if there are too many initial parameters 😕IMO it seems like we want to raise an error in this case since it's otherwise very easy to accidentally do the incorrect thing.