Skip to content

Replace njobs with cores argument #2831

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

Merged
merged 9 commits into from
Feb 4, 2018
Merged

Replace njobs with cores argument #2831

merged 9 commits into from
Feb 4, 2018

Conversation

fonnesbeck
Copy link
Member

@fonnesbeck fonnesbeck commented Feb 1, 2018

This allows for a clearer specification of the intended sampling procedure:

trace = sample(1000, chains=4, cores=2)

will sample 4 chains using 2 parallel processes.

njobs has been deprecated, and I have added back nchains as a deprecated argument, since it looks like we did not deprecate it when we replaced it with chains. This has resulted in some unexpected behavior.

Closes #2546

@fonnesbeck fonnesbeck changed the title Replaced njobs with cores argument Replace njobs with cores argument Feb 1, 2018
@junpenglao
Copy link
Member

Nice! We should also change it for other sampler eg SMC @aloctavodia

@fonnesbeck
Copy link
Member Author

Good thought. I will check for other sample calls and make them consistent across the board.

@twiecki
Copy link
Member

twiecki commented Feb 2, 2018

Nice! Also needs to be added to the release-notes.

@aloctavodia
Copy link
Member

LGTM! I am saying this as one of the confused persons :-)

@fonnesbeck fonnesbeck merged commit 946fa0c into master Feb 4, 2018
@fonnesbeck fonnesbeck deleted the sample_arg_rename branch February 4, 2018 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants