The Stan Forums
Breaking gradients with fabs and the "double monomial"
Modeling
specification
rok_cesnovar
July 20, 2021, 8:32am
2
fabs(x)
is not differentiable at x = 0
A bit more on that here:
Sqrt(square()) vs. fabs()
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Sqrt(square()) vs. fabs()
General
6
2795
May 2, 2019
Yet another case of (Rejecting initial value: Gradient evaluated at the initial value is not finite.)
Modeling
3
556
July 18, 2022
Initial value rejected, but the likelihood exists for that initial value
Modeling
fitting-issues
,
specification
,
cognitive-science
18
1311
July 13, 2020
Simple Example of an Improper Posterior Without Warnings from Stan
General
22
2988
December 7, 2019
Integrate_1d in likelihood computation produces NaNs in the gradient
Modeling
integrator
18
1205
February 5, 2021