Datasets:
Upload 9 files
Browse filesFiles changed (9)
- README.md+44-1
- p10-test-00000-of-00001.parquetAdded+3
- p10-train-00000-of-00001.parquetAdded+3
- p7-test-00000-of-00001.parquetAdded+3
- p7-train-00000-of-00001.parquetAdded+3
- p8-test-00000-of-00001.parquetAdded+3
- p8-train-00000-of-00001.parquetAdded+3
- p9-test-00000-of-00001.parquetAdded+3
- p9-train-00000-of-00001.parquetAdded+3
123---license: cc-by-2.0---12345678910111213141516171819202122232425262728293031323334353637383940414243444546---tags:- permutation- algorithmic-reasoning- synthetic- sequence-classificationtask_categories:- sequence-modelingpretty_name: Permutation Same-Cycle Matricessize_categories:- 10K<n<100K---# Permutation same-cycle matricesSynthetic data for predicting whether two individuals belong to the same cycle of a permutation. Each example contains a zero-based permutation and its binary cycle-equivalence matrix. Entry `(i, j)` is `1` exactly when individuals `i` and `j` are in the same cycle.## ContentsThe dataset includes permutation sizes `p = 7, 8, 9, 10`. For each size there are 4,096 training examples and 100 test examples. Within each size, train and test permutations are sampled uniformly without replacement and are disjoint. The sampling seed is `0`.Files are split by permutation size so the matrix shape is explicit: `data/p7-train-00000-of-00001.parquet`, through `p10-test-00000-of-00001.parquet`.## Features- `permutation`: zero-based permutation tokens, length `p`- `same_cycle`: binary `p x p` matrix- `permutation_size`: `p`- `source_rank`: lexicographic rank of the sampled permutation## Load```pythonfrom datasets import load_datasettrain_files = ["data/p7-train-00000-of-00001.parquet","data/p8-train-00000-of-00001.parquet","data/p9-train-00000-of-00001.parquet","data/p10-train-00000-of-00001.parquet",]test_files = [f.replace("-train-", "-test-") for f in train_files]ds = load_dataset("parquet", data_files={"train": train_files, "test": test_files})```The data-generation logic is based on `predict_integers_in_same_cycle/data_generation.py`.
123version https://git-lfs.github.com/spec/v1oid sha256:e80415ece0d73e9e4859f4e2b6c61f5a5e4202cec1383b00177c2c483343f657size 4143123version https://git-lfs.github.com/spec/v1oid sha256:03aea41f17018979e253c5b47f64a75c110ee809a5db74cb31043b6a89f31a59size 88063123version https://git-lfs.github.com/spec/v1oid sha256:56cdb8f5526a659cd2f95d7321c115b6f719714ee28329d9ca4d1bba4c5cfb3csize 3093123version https://git-lfs.github.com/spec/v1oid sha256:60fe03be77432c9ed270b667b3b791c12c1c0d6d2fd5440c6270969750b1e924size 45264123version https://git-lfs.github.com/spec/v1oid sha256:bce1c889d9da8f53728c71bee698b30a06b975327123883687b1d4df74c3bb53size 3240123version https://git-lfs.github.com/spec/v1oid sha256:29d6afb3de81e161f76e04102e5cbb4057d1362fe153ba5cefbedde2e03483besize 52229123version https://git-lfs.github.com/spec/v1oid sha256:1d90eeddcb716ade9a7a3ba958bca564ac1aa8a9c564e1aa6250204a0a67e798size 3710123version https://git-lfs.github.com/spec/v1oid sha256:bf382e7575dcea1ee6049cbfcadeb5a22b7aba69dd50653ea319224f04a5c9cesize 71010README.md+44-1
p10-test-00000-of-00001.parquetAdded+3
p10-train-00000-of-00001.parquetAdded+3
p7-test-00000-of-00001.parquetAdded+3
p7-train-00000-of-00001.parquetAdded+3
p8-test-00000-of-00001.parquetAdded+3
p8-train-00000-of-00001.parquetAdded+3
p9-test-00000-of-00001.parquetAdded+3
p9-train-00000-of-00001.parquetAdded+3