-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first draft * bug * DynamicNUTS * working * bring back all tests * Apply suggestions from code review Co-authored-by: Hong Ge <[email protected]> * extension * extension * Ext in name + __init__ * different name * end module * compiles but still doesnt find the methods * Compat + no __init__ * working * better imports inside Ext * Apply suggestions from code review Co-authored-by: Tor Erlend Fjelde <[email protected]> Co-authored-by: David Widmann <[email protected]> * DocStringExtensions * DocExtensions * bring back previous interface * bring back previous interface * bring back previous interface --> working * missing end * remove gibbs support * Update Project.toml Co-authored-by: David Widmann <[email protected]> * Update test/contrib/inference/dynamichmc.jl Co-authored-by: David Widmann <[email protected]> * rename * type for DynamicNUTS * rename * Parametric sampler * bug * Apply suggestions from code review Co-authored-by: Tor Erlend Fjelde <[email protected]> * fixing tests * Update Project.toml --------- Co-authored-by: Hong Ge <[email protected]> Co-authored-by: Tor Erlend Fjelde <[email protected]> Co-authored-by: David Widmann <[email protected]>
- Loading branch information
1 parent
fa3a6c1
commit 4d41959
Showing
4 changed files
with
55 additions
and
53 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
@stage_testset "dynamichmc" "dynamichmc.jl" begin | ||
@testset "TuringDynamicHMCExt" begin | ||
import DynamicHMC | ||
Random.seed!(100) | ||
|
||
@test DynamicPPL.alg_str(Sampler(DynamicNUTS(), gdemo_default)) == "DynamicNUTS" | ||
@test DynamicPPL.alg_str(Sampler(externalsampler(DynamicHMC.NUTS()))) == "DynamicNUTS" | ||
|
||
chn = sample(gdemo_default, DynamicNUTS(), 10_000) | ||
spl = externalsampler(DynamicHMC.NUTS()) | ||
chn = sample(gdemo_default, spl, 10_000) | ||
check_gdemo(chn) | ||
|
||
chn2 = sample(gdemo_default, Gibbs(PG(15, :s), DynamicNUTS(:m)), 10_000) | ||
check_gdemo(chn2) | ||
|
||
chn3 = sample(gdemo_default, Gibbs(DynamicNUTS(:s), ESS(:m)), 10_000) | ||
check_gdemo(chn3) | ||
end |
4d41959
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
4d41959
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/88639
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: