dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- matplotlib
|
| 9 |
+
- seaborn
|
| 10 |
+
- data-visualization
|
| 11 |
+
- rl-environment
|
| 12 |
+
- verifiers
|
| 13 |
+
- code
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# matplotlib-tasks-v1
|
| 19 |
+
|
| 20 |
+
Task dataset for a Matplotlib/Seaborn RL / eval environment, in the shape used by the
|
| 21 |
+
[Prime Intellect Environments Hub](https://app.primeintellect.ai/dashboard/environments).
|
| 22 |
+
|
| 23 |
+
27 plotting tasks over a fixed set of small datasets. The model builds the figure, then reads
|
| 24 |
+
the answer back off the axes; the grade is an exact row comparison against a reference.
|
| 25 |
+
Deterministic — no LLM judge, no external API, no network, **and no pixels**.
|
| 26 |
+
|
| 27 |
+
| Category | Tasks | Covers |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| line_plots | 6 | ydata/xdata readback, multiple lines, legend texts, linestyle and marker, plotting a derived series |
|
| 30 |
+
| axes_config | 6 | explicit limits, title and axis labels, explicit ticks, subplot grids, log scale, limits not filtering data |
|
| 31 |
+
| bar_charts | 5 | heights, widths, `barh`, stacked bars via `bottom`, explicit tick labels |
|
| 32 |
+
| statistical | 5 | histogram counts and edges, custom bin edges, scatter offsets, boxplot median and whiskers |
|
| 33 |
+
| seaborn | 5 | `lineplot` passthrough, `barplot` group means, `barplot` with `estimator="sum"`, `scatterplot` collections, `histplot` patch heights |
|
| 34 |
+
|
| 35 |
+
## ⚠ Why this dataset does not compare images
|
| 36 |
+
|
| 37 |
+
Image comparison is the obvious way to grade a plot and the wrong one: it fails on font
|
| 38 |
+
hinting, DPI, backend and antialiasing long before it tests whether the model plotted the right
|
| 39 |
+
thing. Here the model builds the figure and the grade reads values back off the artists.
|
| 40 |
+
|
| 41 |
+
That still leaves a determinism trap, and it was **measured** on matplotlib 3.11.1, not assumed:
|
| 42 |
+
|
| 43 |
+
```
|
| 44 |
+
ln.get_color() -> (0.1215…, 0.4666…, 0.7058…) from the STYLE CYCLE — version-dependent
|
| 45 |
+
ax.get_xlim() -> (-0.2, 4.2) after autoscale depends on margin defaults
|
| 46 |
+
ln.get_ydata() -> exactly what was passed in stable
|
| 47 |
+
hist counts -> computed from the data stable
|
| 48 |
+
ax.get_xlim() -> after ax.set_xlim(0, 10) stable — the task set it
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
**Every task therefore grades only:** user-supplied data, computed values, and properties the
|
| 52 |
+
task itself sets explicitly. Never a default colour, never an autoscaled limit, never an
|
| 53 |
+
automatic tick location.
|
| 54 |
+
|
| 55 |
+
## Fields
|
| 56 |
+
|
| 57 |
+
| Field | Description |
|
| 58 |
+
|---|---|
|
| 59 |
+
| `task_id` | stable id, e.g. `mpl-017` |
|
| 60 |
+
| `category` | one of the five above |
|
| 61 |
+
| `prompt` | the natural-language instruction |
|
| 62 |
+
| `data_description` | the preloaded variables, as shown to the model |
|
| 63 |
+
| `data` | those variables as JSON, so the task is self-contained |
|
| 64 |
+
| `expected_output` | `{"rows": [[...]]}` — the reference result |
|
| 65 |
+
|
| 66 |
+
## Verification
|
| 67 |
+
|
| 68 |
+
Every task is independently checked: it runs, is deterministic **across two freshly built
|
| 69 |
+
figures**, returns a non-empty list of JSON-safe primitives — which catches an Artist or numpy
|
| 70 |
+
scalar leaking out instead of a plain value — contains no NaN/inf, and survives the
|
| 71 |
+
serialisation round-trip exactly. All 27 pass on matplotlib 3.11.1 / seaborn 0.13.2 with the
|
| 72 |
+
Agg backend.
|
| 73 |
+
|
| 74 |
+
Builder and verifier:
|
| 75 |
+
[`build_tasks.py`](https://github.com/eltociear/my-molt-agent/blob/main/environments/matplotlib_env/build_tasks.py).
|