license: mit
pretty_name: monoids-100
configs:
- config_name: default
data_files:
- split: S2
path: S2.jsonl
- split: S3
path: S3.jsonl
- split: S4
path: S4.jsonl
- split: S5
path: S5.jsonl
- split: S6
path: S6.jsonl
- split: A3
path: A3.jsonl
- split: A4
path: A4.jsonl
- split: A5
path: A5.jsonl
- split: A6
path: A6.jsonl
- split: Z6
path: Z6.jsonl
- split: Z12
path: Z12.jsonl
- split: Z24
path: Z24.jsonl
- split: Z60
path: Z60.jsonl
- split: Z120
path: Z120.jsonl
- split: Z360
path: Z360.jsonl
- split: Z720
path: Z720.jsonl
Monoids
Sequences of elements from various monoids along with their products. Contains data from monoids over symmetric groups (S2, S3, S4, S5, and S6); alternating groups (A3, A4, A5, and A6); and several cyclic groups chosen to match the order of the symmetric and alternating groups (Z6, Z12, Z24, Z60, Z120, Z360, and Z720).
Each group has its own eponymous split; each split contains 100,000 records of 5 features:
sequence: list[int]A sequence of elements in in the range0...order(group), of length at most 100;intermediate_products: list[int]Thekth value corresponds to the product of the firstkelements, with the 0th value equal tosequence[0];product: intThe product of the entire sequence, equal tointermediate_products[-1];sequence_len: intThe length of the sequence;group: strThe group from which the sequence is drawn.
Generating data
We also provide a script to generate new data. Install dependencies provided in pyproject.toml (e.g., with ev) and then run:
uv run generate_data.py [--max_sequence_length: int] [--samples_per_group: int] [--seed: int | None] [--groups: list[str]]
Arguments have the following uses:
- max_sequence_length: The maximum length of the sequences to generate (default: 100).
- samples_per_group: The number of samples to generate for each group (default: 100_000).
- seed: The random seed to use for reproducibility (default: None; will attempt to load DATA_SEED from environment; if this is not set, will use a random seed).
- groups: A list of groups to generate data for (default: all groups in the dataset). Valid groups are symmetric groups (S#), alternating groups (A#), and cyclic groups (Z#).