-
-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
Summary:
A CmdStanPy unit test is now failing
Reproducible Steps:
transformed data {
vector[2] y[2];
vector[2] mu0;
matrix[2,2] sigma;
y[1,1] = 40000.0;
y[1,2] = 30000.0;
y[2,1] = 30000.0;
y[2,2] = 20000.0;
mu0[1] = 0.0;
mu0[2] = 0.0;
sigma[1,1] = 10000.0;
sigma[1,2] = 00000.0;
sigma[2,1] = 00000.0;
sigma[2,2] = 10000.0;
}
parameters {
vector[2] mu;
}
model {
mu ~ multi_normal(mu0,sigma);
for (n in 1:2)
y[n] ~ multi_normal(mu,sigma);
}The test is here:
https://github.com/stan-dev/cmdstanpy/blob/8596085d31be60cf6a24562b7db92bc1aab50eca/test/test_variational.py#L171
relevant info: algorithm='meanfield', seed=12345
The error:
self.assertAlmostEqual(
variational.variational_params_np[3], 31.0418, places=2
)
E AssertionError: 309.196 != 31.0418 within 2 places (278.1542 difference)
@rok-cesnovar - do you know if this would be expected with this version change?
Current Version:
v2.28.0
Metadata
Metadata
Assignees
Labels
No labels