Logistic regression 2

Time bar (total: 1.5s)

start0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

analyze68.0ms (4.5%)

Memory
23.0MiB live, 102.7MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
50%50%50%0.1%0%0%0%2
50%50%50%0.1%0%0%0%3
75%74.9%25%0.1%0%0%0%4
75%74.9%25%0.1%0%0%0%5
75%74.9%25%0.1%0%0%0%6
75%74.9%25%0.1%0%0%0%7
75%74.9%25%0.1%0%0%0%8
75%74.9%25%0.1%0%0%0%9
75%74.9%25%0.1%0%0%0%10
75%74.9%25%0.1%0%0%0%11
75%74.9%25%0.1%0%0%0%12
Compiler

Compiled 11 to 8 computations (27.3% saved)

sample1.1s (72.7%)

Memory
-28.3MiB live, 1 368.1MiB allocated
Samples
490.0ms8 256×0valid
222.0ms2 647×1exit
Precisions
Click to see histograms. Total time spent on operations: 435.0ms
ival-log1p: 126.0ms (29% of total)
ival-exp: 103.0ms (23.7% of total)
ival-mult: 91.0ms (20.9% of total)
ival-sub: 57.0ms (13.1% of total)
adjust: 44.0ms (10.1% of total)
ival-true: 9.0ms (2.1% of total)
ival-assert: 4.0ms (0.9% of total)
Bogosity

explain96.0ms (6.3%)

Memory
25.7MiB live, 103.4MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
377(-2.557408446881044e+167 3.4960537325408685e-121)0-(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
00-0-(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
00-0-(+.f64 #s(literal 1 binary64) (exp.f64 x))
00-0-y
00-0-#s(literal 1 binary64)
00-0-(exp.f64 x)
00-0-(*.f64 x y)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
log.f64(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))sensitivity770
log.f64(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))oflow-rescue30
(exp.f64 x)overflow3
(+.f64 #s(literal 1 binary64) (exp.f64 x))overflow3
Confusion
Predicted +Predicted -
+30
-77176
Precision
0.0375
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+300
-770176
Precision?
0.0375
Recall?
1.0
Freqs
test
numberfreq
0176
180
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
35.0ms512×0valid
Compiler

Compiled 91 to 36 computations (60.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 20.0ms
ival-log1p: 6.0ms (29.4% of total)
ival-exp: 5.0ms (24.5% of total)
ival-mult: 4.0ms (19.6% of total)
ival-sub: 2.0ms (9.8% of total)
ival-add: 2.0ms (9.8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.2%)

Memory
3.8MiB live, 3.8MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 9 to 8 computations (11.1% saved)

eval0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 9 to 8 computations (11.1% saved)

simplify0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(exp.f64 x)
cost-diff0
(+.f64 #s(literal 1 binary64) (exp.f64 x))
cost-diff0
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
cost-diff0
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
y
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
(*.f64 x y)
y

localize24.0ms (1.6%)

Memory
-14.5MiB live, 23.7MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(exp.f64 x)
accuracy0.0078125
(+.f64 #s(literal 1 binary64) (exp.f64 x))
accuracy0.015625
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
accuracy0.7341644523109889
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Samples
18.0ms256×0valid
Compiler

Compiled 54 to 18 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 11.0ms
ival-log1p: 4.0ms (36.8% of total)
ival-exp: 2.0ms (18.4% of total)
ival-mult: 2.0ms (18.4% of total)
ival-sub: 1.0ms (9.2% of total)
ival-add: 1.0ms (9.2% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series53.0ms (3.5%)

Memory
8.5MiB live, 49.4MiB allocated
Counts
4 → 24
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
Outputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(log (+ 1 (exp x)))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Calls

6 calls:

TimeVariablePointExpression
28.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x))
19.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x))
3.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x))
1.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x))
1.0ms
y
@inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x))

simplify0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Algorithm
egg-herbie
Counts
24 → 4
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(log (+ 1 (exp x)))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Outputs
(log 2)
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(+ (log 2) (* x (- 1/2 y)))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(exp.f64 x)

rewrite0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Counts
4 → 4
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)

eval1.0ms (0.1%)

Memory
1.3MiB live, 1.3MiB allocated
Compiler

Compiled 96 to 18 computations (81.3% saved)

prune2.0ms (0.1%)

Memory
2.1MiB live, 2.1MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New538
Fresh000
Picked011
Done000
Total549
Accuracy
98.8%
Counts
9 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
10.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
50.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
11.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Compiler

Compiled 50 to 43 computations (14% saved)

simplify1.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
egg-herbie
Localize:

Found 9 expressions of interest:

NewMetricScoreProgram
cost-diff0
(exp.f64 x)
cost-diff0
(+.f64 #s(literal 1 binary64) (exp.f64 x))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
cost-diff0
(exp.f64 x)
cost-diff0
(+.f64 #s(literal 1 binary64) (exp.f64 x))
cost-diff0
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
cost-diff0
(exp.f64 x)
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(literal 1 binary64)
(exp.f64 x)
x

localize29.0ms (1.9%)

Memory
-9.9MiB live, 26.8MiB allocated
Localize:

Found 9 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(exp.f64 x)
accuracy0.0078125
(+.f64 #s(literal 1 binary64) (exp.f64 x))
accuracy57.3190334577039
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
accuracy0.0
(exp.f64 x)
accuracy0.0078125
(+.f64 #s(literal 1 binary64) (exp.f64 x))
accuracy0.7341644523109889
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
accuracy30.888108530392024
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
accuracy0.0
(exp.f64 x)
accuracy56.68131178405784
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Samples
21.0ms256×0valid
Compiler

Compiled 118 to 25 computations (78.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 13.0ms
ival-mult: 5.0ms (39.6% of total)
ival-log1p: 3.0ms (23.7% of total)
ival-exp: 2.0ms (15.8% of total)
ival-sub: 1.0ms (7.9% of total)
ival-add: 1.0ms (7.9% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series18.0ms (1.2%)

Memory
-14.0MiB live, 24.7MiB allocated
Counts
6 → 24
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Outputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(exp x)
(log (+ 1 (exp x)))
(+ 1 (exp x))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Calls

6 calls:

TimeVariablePointExpression
6.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (- (log (+ 1 (exp x))) (* x y)))
6.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (- (log (+ 1 (exp x))) (* x y)))
2.0ms
y
@inf
((- (log (+ 1 (exp x))) (* x y)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (- (log (+ 1 (exp x))) (* x y)))
1.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (- (log (+ 1 (exp x))) (* x y)))
1.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (- (log (+ 1 (exp x))) (* x y)))

simplify0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Algorithm
egg-herbie
Counts
24 → 6
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(exp x)
(log (+ 1 (exp x)))
(+ 1 (exp x))
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Outputs
(log 2)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(+ (log 2) (* x (- 1/2 y)))
(exp.f64 x)
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
1
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(+ 1 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))

rewrite0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Counts
6 → 6
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
(exp.f64 x)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))

eval2.0ms (0.1%)

Memory
2.4MiB live, 2.4MiB allocated
Compiler

Compiled 315 to 29 computations (90.8% saved)

prune3.0ms (0.2%)

Memory
4.3MiB live, 4.3MiB allocated
Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New15217
Fresh000
Picked033
Done011
Total15621
Accuracy
98.8%
Counts
21 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
10.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
10.1%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
50.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
11.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
11.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Compiler

Compiled 89 to 72 computations (19.1% saved)

simplify1.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 #s(literal 1 binary64) (exp.f64 x))
cost-diff0
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
cost-diff0
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
cost-diff0
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
cost-diff0
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
cost-diff0
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
cost-diff0
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(literal 1 binary64)
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(literal 1 binary64)
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
x
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(literal 1 binary64)
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
x
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(literal 1 binary64)
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
(exp.f64 x)
x

localize27.0ms (1.8%)

Memory
-10.7MiB live, 27.9MiB allocated
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0078125
(+.f64 #s(literal 1 binary64) (exp.f64 x))
accuracy0.0078125
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
accuracy54.193737162410585
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
accuracy57.3190334577039
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
accuracy0.0078125
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
accuracy0.7341644523109889
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
accuracy30.888108530392024
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
accuracy54.193737162410585
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
Samples
18.0ms256×0valid
Compiler

Compiled 150 to 26 computations (82.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 10.0ms
ival-log1p: 3.0ms (31% of total)
ival-exp: 2.0ms (20.7% of total)
ival-mult: 2.0ms (20.7% of total)
ival-sub: 1.0ms (10.3% of total)
ival-add: 1.0ms (10.3% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series17.0ms (1.1%)

Memory
24.4MiB live, 24.4MiB allocated
Counts
6 → 24
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
Outputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(log (+ 1 (exp x)))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Calls

6 calls:

TimeVariablePointExpression
6.0ms
x
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)))
6.0ms
x
@inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)))
1.0ms
y
@0
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)))
1.0ms
y
@-inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)))
1.0ms
y
@inf
((- (log (+ 1 (exp x))) (* x y)) (log (+ 1 (exp x))) (+ 1 (exp x)) (exp x) (- (log (+ 1 (exp x))) (* x y)) (+ 1 (exp x)))

simplify0.0ms (0%)

Memory
0.5MiB live, 0.5MiB allocated
Algorithm
egg-herbie
Counts
24 → 6
Calls
Call 1
Inputs
(log 2)
(+ (log 2) (* x (- 1/2 y)))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
(+ (log 2) (* 1/2 x))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+ (log 2) (* x (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2)))))))
2
(+ 2 x)
(+ 2 (* x (+ 1 (* 1/2 x))))
(+ 2 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
(* -1 (* x y))
(* x (- (/ (log (+ 1 (exp x))) x) y))
(log (+ 1 (exp x)))
(+ 1 (exp x))
(exp x)
(* -1 (* x (- (* -1 (/ (log (+ 1 (exp x))) x)) (* -1 y))))
(+ (log (+ 1 (exp x))) (* -1 (* x y)))
(* y (- (/ (log (+ 1 (exp x))) y) x))
(* -1 (* y (- (* -1 (/ (log (+ 1 (exp x))) y)) (* -1 x))))
Outputs
(log 2)
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(+ (log 2) (* x (- 1/2 y)))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+ (log 2) (* x (- (+ 1/2 (* 1/8 x)) y)))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
(+ (log 2) (* x (- (+ 1/2 (* x (+ 1/8 (* -1/192 (pow x 2))))) y)))
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
(+ (log 2) (* 1/2 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+ (log 2) (* x (+ 1/2 (* 1/8 x))))
(+.f64 #s(literal 1 binary64) (exp.f64 x))

rewrite0.0ms (0%)

Memory
0.6MiB live, 0.6MiB allocated
Counts
6 → 6
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) (exp.f64 x))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
(+.f64 #s(literal 1 binary64) (exp.f64 x))

eval1.0ms (0.1%)

Memory
1.9MiB live, 1.9MiB allocated
Compiler

Compiled 278 to 22 computations (92.1% saved)

prune3.0ms (0.2%)

Memory
4.5MiB live, 4.5MiB allocated
Pruning

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New13013
Fresh000
Picked022
Done044
Total13619
Accuracy
98.8%
Counts
19 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
10.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
10.1%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
50.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
11.7%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
11.4%
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Compiler

Compiled 178 to 94 computations (47.2% saved)

regimes12.0ms (0.8%)

Memory
-29.5MiB live, 10.9MiB allocated
Counts
6 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Calls

3 calls:

6.0ms
x
2.0ms
y
2.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
98.8%1x
98.8%1y
98.8%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 11 to 12 computations (-9.1% saved)

regimes7.0ms (0.5%)

Memory
9.9MiB live, 9.9MiB allocated
Counts
5 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x))))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
Calls

3 calls:

2.0ms
x
2.0ms
y
2.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
50.7%1x
50.7%1y
50.7%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 11 to 12 computations (-9.1% saved)

regimes5.0ms (0.3%)

Memory
8.2MiB live, 8.2MiB allocated
Accuracy

Total -1.1b remaining (-1.9%)

Threshold costs -1.1b (-1.9%)

Counts
3 → 1
Calls
Call 1
Inputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) (exp.f64 x)))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (+.f64 #s(literal 1 binary64) #s(approx (exp x) (+.f64 #s(literal 1 binary64) (exp.f64 x)))))
Outputs
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Calls

3 calls:

2.0ms
x
2.0ms
y
2.0ms
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Results
AccuracySegmentsBranch
11.4%1y
11.4%1x
11.4%1(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
Compiler

Compiled 11 to 12 computations (-9.1% saved)

simplify5.0ms (0.3%)

Memory
7.0MiB live, 7.0MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))
Outputs
(-.f64 (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))) (*.f64 x y))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (log.f64 (+.f64 #s(literal 1 binary64) (exp.f64 x))))
#s(approx (- (log (+ 1 (exp x))) (* x y)) (exp.f64 x))

soundness1.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Stop Event
done
Compiler

Compiled 36 to 16 computations (55.6% saved)

preprocess32.0ms (2.1%)

Memory
0.8MiB live, 39.5MiB allocated
Compiler

Compiled 142 to 84 computations (40.8% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...