-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added state_from_transition, parameters and setparameters!! * Update src/AbstractMCMC.jl Co-authored-by: David Widmann <devmotion@users.noreply.github.com> * renamed state_from_transition to updatestate!! * adhere to julia convention * added docs * fixed docs * fixed docs * added example for why updatestate!! is useful * improved MixtureState example * further improvements to docs * renamed parameters and setparameters!! to values and setvalues!! * fixed typo in docs * fixed documenting values * improved and fixed some bugs in docs * fixed typo in docs * renamed values and setvalues!! to realize and realize!! * added model to updatestate!! * Apply suggestions from code review Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update docs/src/api.md Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com> * Update docs/src/api.md Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com> * version bump --------- Co-authored-by: David Widmann <devmotion@users.noreply.github.com> Co-authored-by: Xianda Sun <5433119+sunxd3@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Xianda Sun <sunxdt@gmail.com>
- Loading branch information
1 parent
fc8cfa6
commit 467b076
Showing
3 changed files
with
163 additions
and
1 deletion.
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
467b076
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.
@JuliaRegistrator register
Release notes:
This PR introduce two functions on sampler state,
getparams
andsetparams!!
.getparams
allows retrieving the values of the parameters as a vector.setparams!!
is the counter part ofgetparams
.This is part of the effort of making interaction between samplers easier. The motivation of this PR is that a "high-order" MCMC (e.g. Gibbs) can use
getparams
andsetparams!!
without having to know the exact type of the sampler state, thus paving way to a more generalized sampler design and implementation.467b076
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.
Registration pull request created: JuliaRegistries/General/117303
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: