Use the whole alphabet and Greek alphabet for variables #14

Merged
paultal merged 3 commits from issue-4-variable-pool into main 2026-11-27 02:40:48 +02:00
Owner

Fixes #4.

Variables are now:

  • x/y (45%)
  • any lowercase letter except e (a constant) and d (kept for dx and derivatives) (35%)
  • any lowercase Greek letter except pi and omicron (15%)
  • a common uppercase letter like N, F, A (5%)

The ambiguity check passes at 100k trees. The new test is in tests/test_generate.py, so it doesn't conflict with #2. Retrain to see the effect.

Fixes #4. Variables are now: - x/y (45%) - any lowercase letter except `e` (a constant) and `d` (kept for `dx` and derivatives) (35%) - any lowercase Greek letter except `pi` and `omicron` (15%) - a common uppercase letter like N, F, A (5%) The ambiguity check passes at 100k trees. The new test is in `tests/test_generate.py`, so it doesn't conflict with #2. Retrain to see the effect.
paultal added 1 commit 2026-11-27 01:26:30 +02:00
The variable pool was 14 Latin letters plus 10 Greek ones, so w, v, q, g,
epsilon, rho, tau, ... were unknown to the model and got spelled out letter
by letter. Variables are now x/y (45%), any lowercase letter except e and d
(35%), any lowercase Greek letter except pi and omicron (15%), or a common
uppercase letter like N, F, A (5%).

e stays a constant and d is kept free for dx and future derivatives.

Fixes #4
paultal added 1 commit 2026-11-27 01:29:35 +02:00
paultal added 1 commit 2026-11-27 02:27:47 +02:00
paultal merged commit 4fb7726e4b into main 2026-11-27 02:40:48 +02:00
Sign in to join this conversation.