-
Notifications
You must be signed in to change notification settings - Fork 18
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
Defaultn_adapts
and discard_initial
to zero
#124
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ function mcmcsample( | |
progress=PROGRESS[], | ||
progressname="Sampling", | ||
callback=nothing, | ||
n_adapts=0, | ||
discard_initial=0, | ||
thinning=1, | ||
chain_type::Type=Any, | ||
|
@@ -209,6 +210,7 @@ function mcmcsample( | |
progress=PROGRESS[], | ||
progressname="Convergence sampling", | ||
callback=nothing, | ||
n_adapts=0, | ||
discard_initial=0, | ||
thinning=1, | ||
kwargs..., | ||
|
@@ -287,6 +289,8 @@ function mcmcsample( | |
N::Integer, | ||
nchains::Integer; | ||
progress=PROGRESS[], | ||
n_adapts=0, | ||
discard_initial=0, | ||
progressname="Sampling ($(min(nchains, Threads.nthreads())) threads)", | ||
init_params=nothing, | ||
kwargs..., | ||
|
@@ -395,6 +399,8 @@ function mcmcsample( | |
::MCMCDistributed, | ||
N::Integer, | ||
nchains::Integer; | ||
n_adapts=0, | ||
discard_initial=0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should not be needed - the keyword arguments are forwarded to the single-chain version and there a default of 0 is already specified. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same is true for the other ensemble algorithms. |
||
progress=PROGRESS[], | ||
progressname="Sampling ($(Distributed.nworkers()) processes)", | ||
init_params=nothing, | ||
|
@@ -490,6 +496,8 @@ function mcmcsample( | |
::MCMCSerial, | ||
N::Integer, | ||
nchains::Integer; | ||
n_adapts=0, | ||
discard_initial=0, | ||
progressname="Sampling", | ||
init_params=nothing, | ||
kwargs..., | ||
|
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.
n_adapts
is not a general thing (in contrast todiscard_initial
), so my feeling is this should not be specified in AbstractMCMC but downstream packages where it is relevant.