Source Annotator
Paste a code snippet with math expressions. Every line that parses as an EML expression gets a SuperBEST cost annotation. Comments and blank lines pass through.
Load sample:
Lines9
Parsed4
Total cost (positive)26n
General total33n
Naive (1n per op)17n
2
z = w * x + b3n / 5n* 1n+ 2n
3
a = 1 / (1 + exp(-z))7n / 8nneg 2nexp 1n+ 2n/ 2n
6
sp = ln(1 + exp(z))4nexp 1n+ 2nln 1n
9
ce = -y * ln(a) - (1 - y) * ln(1 - a)12n / 16nneg 2nln 1n* 1n- 2n- 2nln 1n* 1n- 2n