exsl 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- exsl-0.3.0/CHANGELOG.md +373 -0
- exsl-0.3.0/FAQ.md +24 -0
- exsl-0.3.0/LICENSE +201 -0
- exsl-0.3.0/MANIFEST.in +12 -0
- exsl-0.3.0/PKG-INFO +115 -0
- exsl-0.3.0/README.md +74 -0
- exsl-0.3.0/pyproject.toml +64 -0
- exsl-0.3.0/settings.example.json +5 -0
- exsl-0.3.0/setup.cfg +4 -0
- exsl-0.3.0/src/exsl/__init__.py +87 -0
- exsl-0.3.0/src/exsl/__main__.py +140 -0
- exsl-0.3.0/src/exsl/benchmarks.py +339 -0
- exsl-0.3.0/src/exsl/data.py +291 -0
- exsl-0.3.0/src/exsl/datasets.py +697 -0
- exsl-0.3.0/src/exsl/examples.py +128 -0
- exsl-0.3.0/src/exsl/experiment.py +233 -0
- exsl-0.3.0/src/exsl/format.md +158 -0
- exsl-0.3.0/src/exsl/formats.py +1606 -0
- exsl-0.3.0/src/exsl/gateway.py +551 -0
- exsl-0.3.0/src/exsl/imports.py +336 -0
- exsl-0.3.0/src/exsl/learn.py +1198 -0
- exsl-0.3.0/src/exsl/prauc.py +190 -0
- exsl-0.3.0/src/exsl/science.py +700 -0
- exsl-0.3.0/src/exsl/sequences.py +191 -0
- exsl-0.3.0/src/exsl/showcase.py +671 -0
- exsl-0.3.0/src/exsl/signals.py +262 -0
- exsl-0.3.0/src/exsl/ui.py +1475 -0
- exsl-0.3.0/src/exsl.egg-info/PKG-INFO +115 -0
- exsl-0.3.0/src/exsl.egg-info/SOURCES.txt +32 -0
- exsl-0.3.0/src/exsl.egg-info/dependency_links.txt +1 -0
- exsl-0.3.0/src/exsl.egg-info/entry_points.txt +2 -0
- exsl-0.3.0/src/exsl.egg-info/requires.txt +27 -0
- exsl-0.3.0/src/exsl.egg-info/top_level.txt +1 -0
- exsl-0.3.0/tests/test_exsl.py +2025 -0
exsl-0.3.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `exsl` (`sdm-learn` before 0.3.0). The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
|
+
[PEP 440](https://peps.python.org/pep-0440/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.3.0] - 2026-12-05
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Renamed to **ExSL, the externalized supervised learner** (formerly
|
|
13
|
+
self-documenting models, SDM). The distribution is `exsl` (was `sdm-learn`),
|
|
14
|
+
the import name `exsl` (was `sdm`), the command `exsl` (was `sdm`), the
|
|
15
|
+
algorithm `algo="exsl"` (was `"sdm"`), the settings `EXSL_*` (were `SDM_*`)
|
|
16
|
+
and the key file `~/.exsl_key` (was `~/.sdm_key`); new runs are named
|
|
17
|
+
`<dataset>-exsl-<format>`. The old algorithm name, `SDM_*` variables,
|
|
18
|
+
`~/.sdm_key` and `*-sdm-*` run directories are still accepted. The
|
|
19
|
+
repository is github.com/sunrainyg/ExSL and the documentation
|
|
20
|
+
yulugan.com/exsl (the old /sdm/ pages redirect).
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- `reproduce/properties/predict_redirect.py`: for the PODS redirect chain (one
|
|
24
|
+
class's rule rewritten as another class's description), asks an interpreter
|
|
25
|
+
which class the redirected object's photos will now receive, with the
|
|
26
|
+
document and with the class names alone, and reports it against the
|
|
27
|
+
executor's majority label; `reproduce/figures/interp_redirect.py` draws the
|
|
28
|
+
four edits with the objects' photos and every answer.
|
|
29
|
+
- Compare page (`sdm ui` and the published `sdm home` copy): a card of
|
|
30
|
+
(x, y) examples of the dataset shown, four test rows with their labels,
|
|
31
|
+
and under them the full label list, which opens to one image per label;
|
|
32
|
+
for the SR families the observed values and the values to predict are
|
|
33
|
+
drawn. `sdm.examples.examples_of`,
|
|
34
|
+
`/api/examples?dataset=`.
|
|
35
|
+
- `reproduce/properties/targeted_edits.py`: edits with an intent and a
|
|
36
|
+
pre-registered outcome, for any rulebook run: `substitute` (a threshold
|
|
37
|
+
moved coherently, with the band of rows it must move), `instruct` (an
|
|
38
|
+
editor LLM revises the document through the edit grammar under one
|
|
39
|
+
instruction: repair a confusion, bias a tie, add a class from domain
|
|
40
|
+
knowledge, remove colour cues), `drop-class`, and `report` (intended
|
|
41
|
+
effect, side effects against the re-scoring noise, the document read as a
|
|
42
|
+
program, the LLM forecast).
|
|
43
|
+
- `reproduce/properties/predict_shift.py`: a `--arm no-document` control,
|
|
44
|
+
`--examples N` (training images before and after the shift, attached), a
|
|
45
|
+
`--ask-rules` question (which rule ids the shift breaks, scored against the
|
|
46
|
+
rules that lost correct citations), text and rendering shifts, and a
|
|
47
|
+
report with the "no change" baseline, per-class rank agreement and
|
|
48
|
+
bootstrap intervals on every drop.
|
|
49
|
+
- `reproduce/properties/evaluate.py`: `--transform zoom | hue`,
|
|
50
|
+
`drop:<fields>` and `round:<decimals>` for text rows, and `--variant
|
|
51
|
+
no-ruler` (Gravity Spy rendered without its Hz ruler; the executor is told
|
|
52
|
+
what the new rendering shows).
|
|
53
|
+
- `reproduce/ai4science/import_rulebook.py` and a `state.json` beside each
|
|
54
|
+
checked-in rulebook, so `sdm.load` and every property tool open them;
|
|
55
|
+
`--page`/`--out` import a rulebook learned elsewhere, and `--training-log`
|
|
56
|
+
carries the task description the writer was given.
|
|
57
|
+
- `reproduce/ai4science/rulebooks/<dataset>-grayscale/`: the Gravity Spy,
|
|
58
|
+
BloodMNIST and Galaxy10 rulebooks learned on grayscale renderings of the
|
|
59
|
+
same training rows, for the black-and-white-to-colour direction of the
|
|
60
|
+
shift experiment; `evaluate.py --transform colour` is the matching identity
|
|
61
|
+
condition.
|
|
62
|
+
- `reproduce/properties/predict_diff.py`, `discriminate.py` and
|
|
63
|
+
`transcribe_agreement.py`: interpretability tests with the executor held
|
|
64
|
+
fixed (an edit predicted row by row; two documents under one executor; a
|
|
65
|
+
program transcribed by another model, agreed with the executor row by row);
|
|
66
|
+
`--informed` on the accuracy forecasters gives the executor's no-document
|
|
67
|
+
score.
|
|
68
|
+
- `reproduce/properties/predict_questions.py` and
|
|
69
|
+
`reproduce/sequence/predict_questions.py`: a battery of questions about a
|
|
70
|
+
document (class ranking, confusions, class removal with and without its
|
|
71
|
+
name, the reading-procedure rules, the five rules the predictor names; for
|
|
72
|
+
the sequence task the book on its own family, no book, another family,
|
|
73
|
+
edited books, the merged book), asked with and without the document and
|
|
74
|
+
measured.
|
|
75
|
+
- `reproduce/properties/measure.py`: the shared measurement helpers, and an
|
|
76
|
+
offline `test_properties` check.
|
|
77
|
+
|
|
78
|
+
## [0.2.0] - 2026-09-14
|
|
79
|
+
|
|
80
|
+
The first release with the SkillOpt-benchmark comparison, the `illustrated`
|
|
81
|
+
format, the static home page and the reorganized results page.
|
|
82
|
+
|
|
83
|
+
### Changed
|
|
84
|
+
- Documentation: one install line (`pip install 'sdm-learn[all]'`); the
|
|
85
|
+
Setup section defaults to the Docker Sandbox; the Concepts page is gone.
|
|
86
|
+
- Results: the main table covers five SkillOpt benchmarks with `SDM` in every
|
|
87
|
+
table; the cross-model section is "The document across models".
|
|
88
|
+
|
|
89
|
+
### Removed
|
|
90
|
+
- ALFWorld from the SkillOpt-benchmark comparison (`reproduce/skillopt_envs`,
|
|
91
|
+
`sdm ui`, results); the comparison covers SearchQA, DocVQA,
|
|
92
|
+
LiveMathematicianBench, SpreadsheetBench and OfficeQA.
|
|
93
|
+
|
|
94
|
+
## [0.1.18] - 2026-09-14
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
- `sdm ui`: the SkillOpt-benchmark runs are not shown by default (`--datasets skillopt`).
|
|
98
|
+
|
|
99
|
+
## [0.1.17] - 2026-09-14
|
|
100
|
+
|
|
101
|
+
### Added
|
|
102
|
+
- `reproduce/skillopt_envs/train.py`: `sdm` inside SkillOpt's six benchmark
|
|
103
|
+
environments (its splits, rollouts and evaluators), with `--eval` to score
|
|
104
|
+
any skill file the same way. `sdm ui` shows these runs, one dataset per
|
|
105
|
+
environment and target model, with the no-document arm as the reference.
|
|
106
|
+
- `sdm home` (was `sdm gallery`): the SDM page as a static site.
|
|
107
|
+
|
|
108
|
+
## [0.1.16] - 2026-09-13
|
|
109
|
+
|
|
110
|
+
### Changed
|
|
111
|
+
- `sdm gallery` is `sdm home`; the published page is yulugan.com/sdm/home/.
|
|
112
|
+
|
|
113
|
+
## [0.1.15] - 2026-09-13
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
- `sdm gallery --out DIR`: a static copy of the `sdm ui` page with its data
|
|
117
|
+
baked in and every document as a small JSON file, for a web site; the
|
|
118
|
+
launch and edit controls are hidden. Published at yulugan.com/sdm/gallery/.
|
|
119
|
+
|
|
120
|
+
## [0.1.14] - 2026-09-13
|
|
121
|
+
|
|
122
|
+
### Added
|
|
123
|
+
- `sdm ui`: a **Base model (no doc)** chip before the shelves with the same
|
|
124
|
+
model's score without a document.
|
|
125
|
+
|
|
126
|
+
### Fixed
|
|
127
|
+
- `sdm ui` 0.1.13 did not start: two references to the removed Runs page
|
|
128
|
+
remained in the page script.
|
|
129
|
+
|
|
130
|
+
## [0.1.13] - 2026-09-13
|
|
131
|
+
|
|
132
|
+
### Removed
|
|
133
|
+
- `sdm ui`: the Runs tab. The SDM page is the index; a run's own page still
|
|
134
|
+
opens after New run or Edit & rerun (and at `#run/<name>`).
|
|
135
|
+
|
|
136
|
+
## [0.1.12] - 2026-09-13
|
|
137
|
+
|
|
138
|
+
### Removed
|
|
139
|
+
- `sdm ui`: the Tools tab (forms over the `reproduce/` scripts). The scripts
|
|
140
|
+
remain command lines, documented in Tools; **Edit & rerun** keeps using
|
|
141
|
+
`edit.py` and `evaluate.py` underneath.
|
|
142
|
+
|
|
143
|
+
## [0.1.11] - 2026-09-13
|
|
144
|
+
|
|
145
|
+
### Changed
|
|
146
|
+
- `sdm ui`: page-rendered documents (`illustrated`, `pdf`) are drawn at two
|
|
147
|
+
device pixels per CSS pixel, so they are sharp on high-resolution screens;
|
|
148
|
+
the side panel says they are shown as the printed PDF pages and links the
|
|
149
|
+
PDF. Shelves show each method's best score and tabs each format's score.
|
|
150
|
+
|
|
151
|
+
## [0.1.10] - 2026-09-13
|
|
152
|
+
|
|
153
|
+
### Changed
|
|
154
|
+
- `sdm ui`: the What-is-SDM figure animates as one six-second story with
|
|
155
|
+
both columns in step: the forward pass (layers fire / the document is
|
|
156
|
+
loaded and read), then one learning step (a gradient wave and one weight
|
|
157
|
+
strengthening / the LLM re-reads the document and rewrites one line).
|
|
158
|
+
|
|
159
|
+
## [0.1.9] - 2026-09-13
|
|
160
|
+
|
|
161
|
+
### Added
|
|
162
|
+
- `sdm ui`: the landing tab is **SDM**, titled Self-Documenting Models, with
|
|
163
|
+
a **What is SDM?** panel: an animated figure of supervised learning in
|
|
164
|
+
weights beside a self-documenting model (parameters, forward pass,
|
|
165
|
+
learning step). The `illustrated` document opens first when a dataset has
|
|
166
|
+
one.
|
|
167
|
+
- SR squarewave documents in every PODS format (`markdown`, `html --style`,
|
|
168
|
+
`image`, `audio`, `illustrated`), reported in the results.
|
|
169
|
+
|
|
170
|
+
### Changed
|
|
171
|
+
- `sdm ui` shows only the squarewave family of SR by default (`--datasets sr`
|
|
172
|
+
for all six).
|
|
173
|
+
|
|
174
|
+
## [0.1.8] - 2026-09-13
|
|
175
|
+
|
|
176
|
+
### Changed
|
|
177
|
+
- `sdm ui`: the Compare shelves are named after the method that wrote the
|
|
178
|
+
document (`sdm`, `GEPA`, `SkillOpt`, `TextGrad`); variants (seeds, other
|
|
179
|
+
executors, knockouts, edits) no longer appear there and are reached by
|
|
180
|
+
ticking runs on the Runs page.
|
|
181
|
+
|
|
182
|
+
## [0.1.7] - 2026-09-13
|
|
183
|
+
|
|
184
|
+
### Fixed
|
|
185
|
+
- `sdm ui`: the Compare gallery hid every run trained under a different gate
|
|
186
|
+
rule than the selected one, so the science and SR datasets showed no
|
|
187
|
+
`illustrated` document (they train without a gate). The shelves now list
|
|
188
|
+
every run and tag its rule; the gate-rule switch filters the charts only.
|
|
189
|
+
SR runs' `-nothink` suffix no longer moves them off the Documents shelf.
|
|
190
|
+
|
|
191
|
+
## [0.1.6] - 2026-09-13
|
|
192
|
+
|
|
193
|
+
### Added
|
|
194
|
+
- `illustrated` format: an HTML field guide of inline-SVG figures (a
|
|
195
|
+
how-to-look strip, a prototype per class with callouts, look-alike
|
|
196
|
+
spreads), printed to pages for the executor, at most 400 visible words.
|
|
197
|
+
- `sdm ui`: the Compare page is the document; runs sit on four shelves
|
|
198
|
+
(Documents, Other optimizers, Variants, zero-shot as the reference);
|
|
199
|
+
**Edit & rerun** changes a run's rules or document in place, scores the copy
|
|
200
|
+
on the same test rows and shows the effect against the original.
|
|
201
|
+
- `sdm run --labels-only`: a control in which the writer sees each epoch's
|
|
202
|
+
rows with their labels but no executor predictions (chunked document
|
|
203
|
+
distillation); recorded in the config as `feedback_predictions: false`.
|
|
204
|
+
|
|
205
|
+
### Changed
|
|
206
|
+
- `sdm ui` shows the published benchmarks (PODS, DeepFashion2, Gravity Spy,
|
|
207
|
+
BloodMNIST, Galaxy10, SR) by default and fetches each document as you step
|
|
208
|
+
to it, so the Compare page appears at once instead of after a multi-megabyte
|
|
209
|
+
download; the metric-by-format chart is gone, the growth and per-class
|
|
210
|
+
charts fold away under Charts.
|
|
211
|
+
|
|
212
|
+
### Fixed
|
|
213
|
+
- `sdm import <recipe>` drew its pool from the first pages of the public
|
|
214
|
+
split; MMLU's test split is sorted by subject, so the draw covered four
|
|
215
|
+
subjects. Pages are now sampled at random across the whole split (seeded).
|
|
216
|
+
|
|
217
|
+
## [0.1.5] - 2026-09-10
|
|
218
|
+
|
|
219
|
+
### Fixed
|
|
220
|
+
- `sdm ui` hid runs on a user's own directory under its default dataset
|
|
221
|
+
filter and did not offer the directory in the New run form; own directories
|
|
222
|
+
are always visible and every `data/<name>` with train and test files is listed.
|
|
223
|
+
- `sdm import file --image` wrote image paths relative to the source table,
|
|
224
|
+
which the run then resolved relative to the output directory and could not
|
|
225
|
+
find; paths are now rewritten relative to the output directory.
|
|
226
|
+
- Pillow is a core dependency: a plain `pip install sdm-learn` could not run
|
|
227
|
+
a dataset with an image column.
|
|
228
|
+
- `sdm import file` without `--description` wrote an empty description; it
|
|
229
|
+
now writes a placeholder naming the table and columns and says to edit it.
|
|
230
|
+
|
|
231
|
+
## [0.1.4] - 2026-09-10
|
|
232
|
+
|
|
233
|
+
### Added
|
|
234
|
+
- Graded custom directories: a `meta.json` with `{"task": "generation"}` makes
|
|
235
|
+
a `train.jsonl`/`test.jsonl` directory a free-response task scored by exact
|
|
236
|
+
answer (numbers by value, text by normalized match). `sdm import gsm8k`,
|
|
237
|
+
`object-counting`, and `word-sorting` write such directories.
|
|
238
|
+
- `reproduce/baselines`: GEPA, SkillOpt, and TextGrad through their published
|
|
239
|
+
libraries as optimizers of the same `text` document, under the same executor,
|
|
240
|
+
split, and example-evaluation budget as the `sdm` run; `run.py`, `table.py`,
|
|
241
|
+
and the results table in the documentation.
|
|
242
|
+
- `pdf` format: a report for people (title, summary, one illustrated
|
|
243
|
+
section per class, a decision table, an error log) written as HTML and
|
|
244
|
+
printed to `skill.pdf` beside the run by headless Chrome or WeasyPrint
|
|
245
|
+
when available; the UI links it.
|
|
246
|
+
- Graded free-response tasks: a `Dataset.grader(row, response)` hook turns
|
|
247
|
+
the run into write-an-answer-and-score-it; the executor returns `<response>`
|
|
248
|
+
blocks, the writer sees the grader's verdict, and the gate compares total
|
|
249
|
+
score. `sdm.sequences.sequence(family)` brings the six SR families
|
|
250
|
+
(rows identical to `reproduce/sequence`) through this hook; they ship as
|
|
251
|
+
the `sr-<family>` benchmarks under the reproduction's protocol, and the UI
|
|
252
|
+
groups them with the reproduction's own runs under `sr/<family>`.
|
|
253
|
+
|
|
254
|
+
## [0.1.3] - 2026-09-09
|
|
255
|
+
|
|
256
|
+
### Added
|
|
257
|
+
- `sdm ui` features three benchmarks (PODS, AI4Science, SR) on its Runs
|
|
258
|
+
page and groups the dataset picker accordingly. From a checkout,
|
|
259
|
+
`sr/<family>` runs the SR sequence-extrapolation learner
|
|
260
|
+
(`reproduce/sequence`, data generated on first use) and a **Tools** tab
|
|
261
|
+
runs the property experiments as forms: merge, edit (unlearning,
|
|
262
|
+
knockouts, injection), evaluate elsewhere (cross-task, cross-model),
|
|
263
|
+
transcribe to a program, and the SR cross-model / cross-modal / merge
|
|
264
|
+
scripts. Their outputs are ordinary run directories, listed and comparable
|
|
265
|
+
like any run; the showcase loader reads those lineages.
|
|
266
|
+
- Compare loads one dataset at a time, caches loaded runs, and reports runs
|
|
267
|
+
it had to skip instead of failing.
|
|
268
|
+
- `sdm import`: public datasets as run-ready directories through the Hugging
|
|
269
|
+
Face datasets server (`gpqa`, `mmlu`, `arc`, `boolq`, `sst2`, `agnews`;
|
|
270
|
+
multiple choice becomes lettered classification) and `sdm import file`
|
|
271
|
+
for your own `.jsonl` / `.json` / `.csv` / `.tsv` table (text, image
|
|
272
|
+
paths, or option columns). A custom directory's `description.txt` is
|
|
273
|
+
read automatically.
|
|
274
|
+
- `sdm init` writes a `settings.json` template beside `format.md`; `sdm run`
|
|
275
|
+
checks that a model is configured before downloading anything, and the
|
|
276
|
+
image datasets check their dependencies before downloading.
|
|
277
|
+
- Compare is the landing page of `sdm ui`, documents first; launched jobs
|
|
278
|
+
are detached so closing the page never kills a run. The page shows PODS,
|
|
279
|
+
CIFAR-10, SR, and the four science datasets by default; `sdm ui --datasets all` (or a list) widens it.
|
|
280
|
+
- The documentation moves out of the README to https://yulugan.com/sdm/
|
|
281
|
+
(Sphinx, `docs/`; `docs/publish.sh` builds and publishes it). The README
|
|
282
|
+
is the short front page PyPI shows.
|
|
283
|
+
|
|
284
|
+
## [0.1.2] - 2026-09-09
|
|
285
|
+
|
|
286
|
+
### Added
|
|
287
|
+
- `sdm ui` is now the whole product: a **Runs** table over everything under
|
|
288
|
+
`runs/` (filters, checkboxes), **New run**, **Run detail** with the document
|
|
289
|
+
epoch by epoch, and **Compare**, which opens on every finished run grouped
|
|
290
|
+
by dataset and switches formats and gate rules like the showcase page.
|
|
291
|
+
Deep links: `#run/<name>`, `#compare/<a>,<b>`, `#new`.
|
|
292
|
+
- `sdm showcase OUT.html [GROUP/]LABEL[|RULE]=RUN_DIR ...` writes the
|
|
293
|
+
standalone comparison page from the same component (`sdm.showcase`);
|
|
294
|
+
`reproduce/showcase.py` is gone.
|
|
295
|
+
|
|
296
|
+
## [0.1.1] - 2026-09-09
|
|
297
|
+
|
|
298
|
+
### Added
|
|
299
|
+
- `sdm ui`: a local web page that configures and launches runs (dataset,
|
|
300
|
+
algorithm, format, style, provider / model / API key, gate settings) and
|
|
301
|
+
shows the live log, the per-epoch verdicts, the results, and the learned
|
|
302
|
+
document. Standard library only; binds to localhost.
|
|
303
|
+
- `reproduce/showcase.py` takes several datasets in one page
|
|
304
|
+
(`GROUP/LABEL=RUN_DIR`) with a dataset switcher.
|
|
305
|
+
- `rulebook-html` format: the numbered rulebook written out as an HTML page
|
|
306
|
+
with a section per class, and a `SKETCH | class | <svg>` edit that gives a
|
|
307
|
+
class one schematic. `--passes N` walks the training rows N times;
|
|
308
|
+
`--max-rules 100,200` sets one cap per pass; `--no-gate` keeps every valid
|
|
309
|
+
revision. The four science datasets default to this protocol, which is
|
|
310
|
+
the one their checked-in rulebooks were learned under.
|
|
311
|
+
|
|
312
|
+
## [0.1.0] - 2026-09-09
|
|
313
|
+
|
|
314
|
+
The first non-development release. The library was cut down to what the
|
|
315
|
+
paper describes and made to run through one command.
|
|
316
|
+
|
|
317
|
+
### Added
|
|
318
|
+
- `sdm run --dataset NAME|DIR --algo sdm|base --format ...`: one command for
|
|
319
|
+
every benchmark and for a directory of your own `train.jsonl` /
|
|
320
|
+
`test.jsonl` rows (`src/sdm/benchmarks.py`). Each built-in dataset carries
|
|
321
|
+
the gate settings its protocol uses; flags override them.
|
|
322
|
+
- `--style` / `train(style=...)`: a free-text guide, shown only to the
|
|
323
|
+
writer, naming the kinds of content the document should use.
|
|
324
|
+
- SEARCH/REPLACE `<patch>` revisions for the `text`, `html`, `image`, and
|
|
325
|
+
`audio` formats, so a revision costs its difference rather than a rewrite.
|
|
326
|
+
- A `text` format: one plain-text document.
|
|
327
|
+
- `image` format refuses every text element; the picture carries the
|
|
328
|
+
hypothesis.
|
|
329
|
+
- Gateway knobs: `SDM_TEMPERATURE`, `SDM_EXTRA_PAYLOAD`,
|
|
330
|
+
`SDM_MAX_COMPLETION_TOKENS`, and a separate writer model or endpoint
|
|
331
|
+
(`SDM_WRITER_MODEL`, `SDM_WRITER_EFFORT`, `SDM_WRITER_GATEWAY_URL`,
|
|
332
|
+
`SDM_WRITER_API_KEY`).
|
|
333
|
+
- Writer robustness for small models: lenient edit parsing, one corrected
|
|
334
|
+
retry on an invalid revision, context-window failures skip the candidate,
|
|
335
|
+
`proposal_examples` caps the feedback shown per epoch.
|
|
336
|
+
- `reproduce/showcase.py`: an interactive page comparing formats on one
|
|
337
|
+
dataset (accuracy or PR-AUC, document growth, per-class curves, every
|
|
338
|
+
epoch's document with playable audio).
|
|
339
|
+
- Four science benchmarks with their learned HTML rulebooks and designed
|
|
340
|
+
views: `gravityspy`, `galaxy10`, `bloodmnist`, `eclipsing` (`sdm.science`,
|
|
341
|
+
the `science` extra, `reproduce/ai4science`).
|
|
342
|
+
- The offline test suite is tracked and run by CI.
|
|
343
|
+
|
|
344
|
+
### Changed
|
|
345
|
+
- **Algorithms are `sdm` and `base`** (formerly `gate` and `baseline`).
|
|
346
|
+
- **The gate accepts ties.** A candidate is kept unless it lowers protected
|
|
347
|
+
accuracy; the strict-gain rule and the 5% compression exception are gone.
|
|
348
|
+
On PODS this raised the markdown rulebook from 91.7 to 95.4 PR-AUC.
|
|
349
|
+
- **`cycles` are `epochs`** everywhere: options, state, candidate log, raw
|
|
350
|
+
folders. Runs saved under the old name do not resume.
|
|
351
|
+
- `format.md` is the single source of the default formats
|
|
352
|
+
(`DEFAULT_FORMAT_MD` reads it). Size caps: `html` 12,000 words / 60,000
|
|
353
|
+
characters, `image` 40,000 characters.
|
|
354
|
+
- Rendered formats ask the writer for ASCII text (cairosvg has no glyph for
|
|
355
|
+
arrows and draws a box).
|
|
356
|
+
- README rewritten as the package's reference documentation.
|
|
357
|
+
|
|
358
|
+
### Removed
|
|
359
|
+
- The in-context (`icl`) control, the GEPA and SkillOpt baselines, the
|
|
360
|
+
fine-tuning export, the graded free-response mode, and the ungated
|
|
361
|
+
`accept_all` switch.
|
|
362
|
+
- Every dataset loader and experiment except `cifar10`, `pods`, `df2`, and
|
|
363
|
+
`camelyon17` (GSM8K, MBPP, LiveMath, IFBench, tabular, Omniglot, Dogs, the
|
|
364
|
+
other WILDS subsets, and more).
|
|
365
|
+
- The `video` format: on PODS, 70 objects in 12 frames reached 18.5 PR-AUC
|
|
366
|
+
against 64.5 for one wordless picture.
|
|
367
|
+
- The `--val` protected-validation option of the Camelyon17 command
|
|
368
|
+
(`holdout_split` remains in the Python API).
|
|
369
|
+
|
|
370
|
+
## [0.1.0.dev0] - 2026-08-29
|
|
371
|
+
|
|
372
|
+
First upload: the gate, the `markdown`, `html`, `image`, `audio`, and
|
|
373
|
+
`video` formats, CIFAR-10, and the experiment template.
|
exsl-0.3.0/FAQ.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Frequently Asked Questions
|
|
2
|
+
|
|
3
|
+
## Where do I configure the LLM?
|
|
4
|
+
|
|
5
|
+
Copy `settings.example.json` to `settings.json`, then set `provider`, `model`,
|
|
6
|
+
and `api_key` there. `settings.json` is gitignored.
|
|
7
|
+
|
|
8
|
+
## Which LLM APIs are supported?
|
|
9
|
+
|
|
10
|
+
See the **VIEW SUPPORTED APIs** table in the
|
|
11
|
+
[README](README.md#configure-an-llm-api). OpenAI-compatible providers can also
|
|
12
|
+
be configured with `"provider": "custom"` and a `gateway_url`.
|
|
13
|
+
|
|
14
|
+
## Where should I put my experiment?
|
|
15
|
+
|
|
16
|
+
Copy `runs/my_experiment.py`, update its `load_data()` function, and run the
|
|
17
|
+
copy from the repository root. The shipped benchmarks need no copy:
|
|
18
|
+
`exsl run --dataset cifar10|pods|df2|camelyon17`. Files created under `runs/` are gitignored except for
|
|
19
|
+
the template.
|
|
20
|
+
|
|
21
|
+
## Why use a virtual environment?
|
|
22
|
+
|
|
23
|
+
It keeps this project's dependencies isolated and ensures the package is
|
|
24
|
+
installed with the Python interpreter you intend to use.
|
exsl-0.3.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
exsl-0.3.0/MANIFEST.in
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include README.md
|
|
3
|
+
include FAQ.md
|
|
4
|
+
include CHANGELOG.md
|
|
5
|
+
include settings.example.json
|
|
6
|
+
|
|
7
|
+
# The GIFs stay out of the distribution: 2.5 MB of animation helps a reader on
|
|
8
|
+
# GitHub and does nothing for an install. The README reaches them by relative
|
|
9
|
+
# path, which GitHub resolves and PyPI does not, so the PyPI page shows a
|
|
10
|
+
# broken image until that link is made absolute at release time.
|
|
11
|
+
prune assets
|
|
12
|
+
prune runs
|