-
-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Milestone
Description
From @bob-carpenter on September 4, 2013 7:7
Simon Barthelmé reported via the stan-users list. I simplified the reported model to this minimal instance:
parameters {
real x;
}
model {
real y;
y <- sqrt(square(x-x));
x ~ normal(0,1);
}
As Simon correctly diagnosed, this model causes a problem with autodiff, as can be seen when running from RStan 1.3:
TESTING GRADIENT FOR MODEL 'barthelme2' NOW (CHAIN 4).
TEST GRADIENT MODE
Log probability=-0.0571533
param idx value model finite diff error
0 -0.338093 nan 0.338093 nan
First step is to move this into a unit test that displays the behavior.
Copied from original issue: stan-dev/stan#203
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels