Generate equations with long left sides #13

Merged
paultal merged 2 commits from issue-2-equation-lhs into main 2026-11-27 02:16:29 +02:00
Owner

Fixes #2.

Equation left sides were only y, f, x or a depth 0–1 expression, so x^2 + y^2 = r^2 never appeared in training. Now:

  • 35%: a single variable, as before
  • 30%: a flat sum of 2–3 simple terms (x^2, 3 x, sin(x)^2, ...). Random trees produced this shape in only 70 of ~40k equations.
  • 35%: a random expression up to depth 3

The length limit still applies, and the ambiguity test passes. The hand-test rows for this are in the #3 PR. Retrain to see the effect.

Fixes #2. Equation left sides were only `y`, `f`, `x` or a depth 0–1 expression, so `x^2 + y^2 = r^2` never appeared in training. Now: - 35%: a single variable, as before - 30%: a flat sum of 2–3 simple terms (`x^2`, `3 x`, `sin(x)^2`, ...). Random trees produced this shape in only 70 of ~40k equations. - 35%: a random expression up to depth 3 The length limit still applies, and the ambiguity test passes. The hand-test rows for this are in the #3 PR. Retrain to see the effect.
paultal added 1 commit 2026-11-27 01:26:28 +02:00
Eq left sides were only y, f, x or a depth-0/1 expression, so x^2 + y^2 = r^2
never appeared in training and the model dropped everything after "=".
Left sides are now a single variable (35%), a flat sum of 2-3 textbook terms
like x^2, 3 x, sin(x)^2 (30%), or a random expression up to depth 3 (35%).
The overall length limit still applies.

The hand-test sentences for this live with the eval changes in #3.

Fixes #2
paultal added 1 commit 2026-11-27 01:29:33 +02:00
paultal merged commit c661773c30 into main 2026-11-27 02:16:29 +02:00
Sign in to join this conversation.