Skip to content

Commit

Permalink
removing at
Browse files Browse the repository at this point in the history
  • Loading branch information
jbris committed Sep 11, 2023
1 parent 447bbae commit ed77f00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Feature: Linear growth model for Australian blacktip sharks (Carcharhinus tilsto
And we believe that the "slope" parameter could plausibly be "5.0" with a standard deviation of "5.0"
And we retrieve our data from the "data.csv" file
And we fit our Bayesian model, then evaluate its "0.95" highest density intervals (HDIs)
Then we expect our "Effective sample size" ("ESS bulk") diagnostics to all be at "greater than" "500.0"
And we expect our "Effective sample size" ("ESS tail") diagnostics to all be at "greater than" "500.0"
And we expect our "Monte carlo standard error" ("MCSE mean") diagnostics to all be at "less than" "0.05"
And we expect our "Monte carlo standard error" ("MCSE sd") diagnostics to all be at "less than" "0.035"
And we expect our "Gelman-Rubin statistic" ("R-hat") diagnostics to all be at "less than" "1.1"
Then we expect our "Effective sample size" ("ESS bulk") diagnostics to all be "greater than" "500.0"
And we expect our "Effective sample size" ("ESS tail") diagnostics to all be "greater than" "500.0"
And we expect our "Monte carlo standard error" ("MCSE mean") diagnostics to all be "less than" "0.05"
And we expect our "Monte carlo standard error" ("MCSE sd") diagnostics to all be "less than" "0.035"
And we expect our "Gelman-Rubin statistic" ("R-hat") diagnostics to all be "less than" "1.1"
And we expect the posterior mean of the "intercept" parameter estimate to be "55.0" with "0.05" error
And we expect the posterior mean of the "slope" parameter estimate to be "6.0" with "0.25" error
And we expect the posterior mean of the "sigma" parameter estimate to be "6.0" with "0.25" error
Expand All @@ -44,11 +44,11 @@ Feature: Linear growth model for Australian blacktip sharks (Carcharhinus tilsto
And we believe that the "slope" parameter could plausibly be "5.0" with a standard deviation of "5.0"
And we retrieve our data from the "data.csv" file
And we fit our Bayesian model, then evaluate its "0.95" highest density intervals (HDIs)
Then we expect our "Effective sample size" ("ESS bulk") diagnostics to all be at "greater than" "500.0"
And we expect our "Effective sample size" ("ESS tail") diagnostics to all be at "greater than" "500.0"
And we expect our "Monte carlo standard error" ("MCSE mean") diagnostics to all be at "less than" "0.05"
And we expect our "Monte carlo standard error" ("MCSE sd") diagnostics to all be at "less than" "0.035"
And we expect our "Gelman-Rubin statistic" ("R-hat") diagnostics to all be at "less than" "1.1"
Then we expect our "Effective sample size" ("ESS bulk") diagnostics to all be "greater than" "500.0"
And we expect our "Effective sample size" ("ESS tail") diagnostics to all be "greater than" "500.0"
And we expect our "Monte carlo standard error" ("MCSE mean") diagnostics to all be "less than" "0.05"
And we expect our "Monte carlo standard error" ("MCSE sd") diagnostics to all be "less than" "0.035"
And we expect our "Gelman-Rubin statistic" ("R-hat") diagnostics to all be "less than" "1.1"
And we expect the posterior mean of the "intercept" parameter estimate to be "54.0" with "0.05" error
And we expect the posterior mean of the "slope" parameter estimate to be "6.0" with "0.25" error
And we expect the posterior mean of the "sigma" parameter estimate to be "6.0" with "0.25" error
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def step_impl(context: Context, hdi_prob: float) -> None:
context.trace = trace

@then(
'we expect our "{diag_longname}" ("{diagnostic:SnakeCaseString}") diagnostics to all be at "{comparison:QueryComparison}" "{diag_baseline:f}"'
'we expect our "{diag_longname}" ("{diagnostic:SnakeCaseString}") diagnostics to all be "{comparison:QueryComparison}" "{diag_baseline:f}"'
)
def step_impl(context: Context, diag_longname: str, diagnostic: str, comparison: str, diag_baseline: float) -> None:
hdi_prob = context.behaviour.bayesian["hdi_prob"]
Expand Down

0 comments on commit ed77f00

Please sign in to comment.