-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix: Auto-increment seed across batch_run iterations #2841
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
EwoutH
wants to merge
20
commits into
main
Choose a base branch
from
batch_seed
base: main
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.
+275
−21
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
728456c
Fix: Auto-increment seed across batch_run iterations
EwoutH c03c6fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 37a0839
Merge remote-tracking branch 'upstream/main' into batch_seed
quaquel 7f456af
add rng as kwarg and deprecate iterations
quaquel 10136f9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 904e796
fix for typo in value error message
quaquel 7972638
Update batchrunner.py
quaquel 529f3ac
Update migration_guide.md
quaquel 7b6eaef
Update migration_guide.md
quaquel e53e16b
Update migration_guide.md
quaquel 4113a11
Update 9_batch_run.ipynb
quaquel 94c44e3
add support for both seed and rng
quaquel 0778ff4
Update migration_guide.md
quaquel 5db0058
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 27a777d
Update test_batch_run.py
quaquel 0a4ea99
Update test_batch_run.py
quaquel 4726920
Update docs/migration_guide.md
quaquel 7ba67df
Update mesa/batchrunner.py
quaquel 088425a
Update mesa/batchrunner.py
quaquel 435399c
Update batchrunner.py
quaquel 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
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
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.
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 behavior should be concisely explained in the batch_run docstring and tutorial
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.
why?
Using both seed and rng on a model already gives an error. This just ensures that the seed is set to the keyword argument specified by the user in their model class, whether it is seed or rng.
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.
Fair, that's true. Give me a moment to get up to speed with it myself.