



Bits error versus x




Bits error versus y
Results
| Original | 0.5 |
|---|---|
| Target | 0.0 |
| Herbie | 0.5 |
Initial program 0.5
Initial simplification0.5
Final simplification0.5
herbie shell --seed 2018365 +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)))
Time bar (total: 5.7s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.5b
Found 2 expressions with local error:
| 0.5b | (log1p (exp x)) |
| 0.0b | (- (log1p (exp x)) (* y x)) |
2 calls. Slowest were:
| 3.0ms | (- (log1p (exp x)) (* y x)) |
| 0.0ms | (log1p (exp x)) |
2 calls. Slowest were:
| 65.0ms | (- (log1p (exp x)) (* y x)) |
| 50.0ms | (log1p (exp x)) |
17 calls. Slowest were:
| 70.0ms | (+ (log 2) (+ (* 1/2 x) (* 1/8 (pow x 2)))) |
| 35.0ms | (+ (log 2) (+ (* 1/2 x) (* 1/8 (pow x 2)))) |
| 23.0ms | (/ (exp (log1p (exp x))) (exp (* y x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.0b | (- (fma x (fma 1/8 x 1/2) (log 2)) (* y x)) |
1 calls. Slowest were:
| 7.0ms | (- (fma x (fma 1/8 x 1/2) (log 2)) (* y x)) |
1 calls. Slowest were:
| 49.0ms | (- (fma x (fma 1/8 x 1/2) (log 2)) (* y x)) |
13 calls. Slowest were:
| 178.0ms | (- (+ (* 1/2 x) (* 1/8 (pow x 2))) (* x y)) |
| 161.0ms | (- (+ (* 1/2 x) (* 1/8 (pow x 2))) (* x y)) |
| 159.0ms | (/ (exp (fma x (fma 1/8 x 1/2) (log 2))) (exp (* y x))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 50.7b | (fma (- x) y (* x y)) |
| 0.0b | (fma x (- (fma 1/8 x 1/2) y) (log 2)) |
2 calls. Slowest were:
| 0.0ms | (fma (- x) y (* x y)) |
| 0.0ms | (fma x (- (fma 1/8 x 1/2) y) (log 2)) |
2 calls. Slowest were:
| 42.0ms | (fma x (- (fma 1/8 x 1/2) y) (log 2)) |
| 25.0ms | (fma (- x) y (* x y)) |
6 calls. Slowest were:
| 164.0ms | (- (+ (* 1/2 x) (* 1/8 (pow x 2))) (* x y)) |
| 140.0ms | (- (+ (* 1/2 x) (* 1/8 (pow x 2))) (* x y)) |
| 47.0ms | (+ (log 2) (+ (* 1/2 x) (* 1/8 (pow x 2)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 3.3b | (log (/ (+ 1 (exp x)) (exp (* y x)))) |
| 0.3b | (/ (+ 1 (exp x)) (exp (* y x))) |
| 0.0b | (exp (* y x)) |
| 0.0b | (+ 1 (exp x)) |
4 calls. Slowest were:
| 6.0ms | (/ (+ 1 (exp x)) (exp (* y x))) |
| 2.0ms | (log (/ (+ 1 (exp x)) (exp (* y x)))) |
| 1.0ms | (+ 1 (exp x)) |
4 calls. Slowest were:
| 57.0ms | (log (/ (+ 1 (exp x)) (exp (* y x)))) |
| 35.0ms | (/ (+ 1 (exp x)) (exp (* y x))) |
| 17.0ms | (exp (* y x)) |
| 11.0ms | (+ 1 (exp x)) |
57 calls. Slowest were:
| 325.0ms | (/ (* (* (+ 1 (exp x)) (+ 1 (exp x))) (+ 1 (exp x))) (* (* (exp (* y x)) (exp (* y x))) (exp (* y x)))) |
| 133.0ms | (+ (* 1/2 (* (pow x 2) (pow y 2))) (+ 1 (* x y))) |
| 67.0ms | (log (/ (* (cbrt (+ 1 (exp x))) (cbrt (+ 1 (exp x)))) 1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.2b
0% (0.2b remaining)
Error of 0.5b against oracle of 0.3b and baseline of 0.5b