



Bits error versus x




Bits error versus y
| Original | 0.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.9 |
if x < -3052060746915.3Initial program 0
rmApplied add-sqr-sqrt0
Applied log-prod0
if -3052060746915.3 < x Initial program 0.6
Taylor expanded around 0 1.2
Simplified1.2
Final simplification0.9
Time bar (total: 17.9s)Debug logProfile
herbie shell --seed 2018346 +o rules:numerics
(FPCore (x y)
:name "Logistic regression 2"
:herbie-target
(if (<= x 0) (- (log (+ 1 (exp x))) (* x y)) (- (log (+ 1 (exp (- x)))) (* (- x) (- 1 y))))
(- (log (+ 1 (exp x))) (* x y)))