Dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: Func-JEPA data
|
| 4 |
+
tags: [symbolic-mathematics, synthetic, functions, symbolic-regression]
|
| 5 |
+
size_categories: [1M<n<10M]
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Func-JEPA data
|
| 9 |
+
|
| 10 |
+
Synthetic datasets of univariate mathematical functions used in *Func-JEPA: Learning a Sobolev Space of Functions as
|
| 11 |
+
Latent Vectors* (Alejandro Moreno Arcas, 2026). Code: https://github.com/amorarc/Func-JEPA · Model:
|
| 12 |
+
https://huggingface.co/amorarc/func-jepa
|
| 13 |
+
|
| 14 |
+
All functions were generated with SymPy by the code of the repository (`docs/DATA.md` there describes the generator,
|
| 15 |
+
the families, and the build sequence). Download into the layout that the scripts expect:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
huggingface-cli download amorarc/func-jepa-data --repo-type dataset --local-dir data
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
## Contents
|
| 22 |
+
|
| 23 |
+
| Folder | Train / val / test | Interval | Used for |
|
| 24 |
+
|---|---|---|---|
|
| 25 |
+
| `v4/` | 2,000,001 / 20,410 / 20,406 | `[-π, π]` | pretraining corpus of the encoder `encoder_pi`, training data of every module |
|
| 26 |
+
| `v3_test_clean/` | – / – / 12,146 | `[-π, π]` | test set of every table in the paper (no function of it is in `v4` train) |
|
| 27 |
+
| `compose_v3/` | 4,166,692 / 20,009 / 19,975 pairs | `[-π, π]` | composition pairs `(g, h(g))` for `h` in sin, cos, log, sqrt, square, cube, quadratic |
|
| 28 |
+
| `v05/` | 2,000,001 / 20,410 / 20,410 | `[0, 5]` | pretraining corpus of the second encoder `encoder_05` |
|
| 29 |
+
|
| 30 |
+
## Format
|
| 31 |
+
|
| 32 |
+
NumPy `.npz` files (no pickled objects) plus a `meta.json` with the vocabulary, the generator configuration, and the
|
| 33 |
+
sizes. In the function datasets, row `i` holds a function `f` and its first two derivatives:
|
| 34 |
+
|
| 35 |
+
| Array | Shape | Content |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| `tokens`, `lens` | `(N, 3, 128)` uint8, `(N, 3)` | prefix token ids of `f`, `f'`, `f''`, padded; vocabulary in `meta.json` |
|
| 38 |
+
| `vals` | `(N, 3, 64)` float32 | values at the 64 Gauss–Legendre nodes of the interval |
|
| 39 |
+
| `norms` | `(N, 3)` float32 | L² norms, with quadrature weights normalised to sum 1 |
|
| 40 |
+
| `family` | `(N,)` | generating family (id order in `meta.json["families"]`) |
|
| 41 |
+
| `group`, `sweep`, `sweep_param`, `sweep_value` | `(N,)` | equivalence group (rewritings of one function), coefficient sweep and swept value; `-1` = none |
|
| 42 |
+
| `ode` | `(N, 5)` | integer coefficients of the linear ODE the function solves (ODE family), else zeros |
|
| 43 |
+
| `edeg`, `has_d2` | `(N,)` | effective Legendre degree; whether `f''` is stored |
|
| 44 |
+
|
| 45 |
+
`compose_v3` files hold, per pair, the operator id `op`, the inner function (`g_tokens`, `g_lens`, `g_idx` = row in
|
| 46 |
+
the first corpus), the composed function (`tokens`, `lens`, `vals`, `norms`), the coefficients `coef` of the
|
| 47 |
+
quadratic, and `g_lift` (the inner function was shifted by a constant to keep `log g` and `sqrt g` defined).
|
| 48 |
+
|
| 49 |
+
Read a row with the repository:
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
from fjepa.data import FunctionDataset
|
| 53 |
+
ds = FunctionDataset("data/v3_test_clean", "test")
|
| 54 |
+
ds.prefix(0, 0) # prefix tokens of f (use 1 for f')
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Notes
|
| 58 |
+
|
| 59 |
+
- Only `f` and `f'` are used for pretraining; `f''` is used for zero-shot tests.
|
| 60 |
+
- `v4` is a length- and class-resampled re-split of a merged pool; its validation and test splits are not disjoint
|
| 61 |
+
from the earlier corpus `v3`, which is why the paper reports on `v3_test_clean`.
|
| 62 |
+
- The latent caches used by the training scripts are not included; they are recomputed from these files with the
|
| 63 |
+
frozen encoder (`python -m fjepa.decoder_data`, `python -m fjepa.compose_data encode`).
|