Skip to content

Commit

Permalink
fix tests for log operator schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Oct 4, 2024
1 parent 8d77919 commit 6a929e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
<compoundGradient idref="simTrait.prior.gradient"/>
</jointGradient>

<operators id="operators">
<operators id="operators" optimizationSchedule="log">
<hamiltonianMonteCarloOperator weight="1" nSteps="10" stepSize="0.01" mode="vanilla"
drawVariance="1.0" gradientCheckCount="1" gradientCheckTolerance="0.5">
<pathGradient>
Expand Down Expand Up @@ -345,8 +345,12 @@
<varianceProportionStatistic idref="varianceLog"/>
</actual>
<expected>
0.9997531382609257 0.19550438061492784
0.19550438061492784 0.9258670139080631
<!-- Using POWER optimization
0.9994180 0.022429281
0.022429281 0.8911881
-->
</expected>
</assertEqual>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
<compoundGradient idref="simTrait.prior.gradient"/>
</jointGradient>

<operators id="operators">
<operators id="operators" optimizationSchedule="log">
<hamiltonianMonteCarloOperator weight="1" nSteps="10" stepSize="0.01" mode="vanilla"
drawVariance="1.0" gradientCheckCount="1" gradientCheckTolerance="0.5">
<pathGradient>
Expand Down Expand Up @@ -345,8 +345,12 @@
<varianceProportionStatistic idref="varianceLog"/>
</actual>
<expected>
0.9881278234958323 0.027051233440815354}
0.027051233440815354 0.011934240128512253
<!--
0.9966896 0.04666217
0.04666217 0.02887752
-->
</expected>
</assertEqual>

Expand Down

0 comments on commit 6a929e7

Please sign in to comment.