Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Nov 18, 2024
1 parent 41471f6 commit 90d99ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/ext/DynamicPPLMCMCChainsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ end
DynamicPPL.LogDensityFunction(m_lin_reg, DynamicPPL.VarInfo(m_lin_reg)),
AdvancedHMC.NUTS(0.65),
MCMCThreads(),
200,
1000,
2;
chain_type=MCMCChains.Chains,
param_names=[],
discard_initial=100,
n_adapt=100,
)
m_lin_reg_test = linear_reg(xs_test, fill(missing, length(ys_test)))
predictions = DynamicPPL.predict(m_lin_reg_test, chain_lin_reg)
Expand Down Expand Up @@ -158,9 +160,10 @@ end
[simple_linear1, simple_linear2, simple_linear3, simple_linear4]
m = model(x, y)
chain = sample(
DynamicPPL.LogDensityFunction(m, DynamicPPL.VarInfo(m)),
DynamicPPL.LogDensityFunction(m),
AdvancedHMC.NUTS(0.65),
1000;
400;
initial_params = rand(4),
chain_type=MCMCChains.Chains,
param_names=param_names[model],
discard_initial=100,
Expand Down

0 comments on commit 90d99ca

Please sign in to comment.