ACDRepo commited on
Commit
5c69c70
·
verified ·
1 Parent(s): fefeaf6

Upload 9 files

Browse files
README.md CHANGED
@@ -1,3 +1,46 @@
1
  ---
2
- license: cc-by-2.0
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - permutation
4
+ - algorithmic-reasoning
5
+ - synthetic
6
+ - sequence-classification
7
+ task_categories:
8
+ - sequence-modeling
9
+ pretty_name: Permutation Same-Cycle Matrices
10
+ size_categories:
11
+ - 10K<n<100K
12
  ---
13
+
14
+ # Permutation same-cycle matrices
15
+
16
+ Synthetic 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.
17
+
18
+ ## Contents
19
+
20
+ The 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`.
21
+
22
+ 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`.
23
+
24
+ ## Features
25
+
26
+ - `permutation`: zero-based permutation tokens, length `p`
27
+ - `same_cycle`: binary `p x p` matrix
28
+ - `permutation_size`: `p`
29
+ - `source_rank`: lexicographic rank of the sampled permutation
30
+
31
+ ## Load
32
+
33
+ ```python
34
+ from datasets import load_dataset
35
+
36
+ train_files = [
37
+ "data/p7-train-00000-of-00001.parquet",
38
+ "data/p8-train-00000-of-00001.parquet",
39
+ "data/p9-train-00000-of-00001.parquet",
40
+ "data/p10-train-00000-of-00001.parquet",
41
+ ]
42
+ test_files = [f.replace("-train-", "-test-") for f in train_files]
43
+ ds = load_dataset("parquet", data_files={"train": train_files, "test": test_files})
44
+ ```
45
+
46
+ The data-generation logic is based on `predict_integers_in_same_cycle/data_generation.py`.
p10-test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e80415ece0d73e9e4859f4e2b6c61f5a5e4202cec1383b00177c2c483343f657
3
+ size 4143
p10-train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03aea41f17018979e253c5b47f64a75c110ee809a5db74cb31043b6a89f31a59
3
+ size 88063
p7-test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56cdb8f5526a659cd2f95d7321c115b6f719714ee28329d9ca4d1bba4c5cfb3c
3
+ size 3093
p7-train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60fe03be77432c9ed270b667b3b791c12c1c0d6d2fd5440c6270969750b1e924
3
+ size 45264
p8-test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bce1c889d9da8f53728c71bee698b30a06b975327123883687b1d4df74c3bb53
3
+ size 3240
p8-train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29d6afb3de81e161f76e04102e5cbb4057d1362fe153ba5cefbedde2e03483be
3
+ size 52229
p9-test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d90eeddcb716ade9a7a3ba958bca564ac1aa8a9c564e1aa6250204a0a67e798
3
+ size 3710
p9-train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf382e7575dcea1ee6049cbfcadeb5a22b7aba69dd50653ea319224f04a5c9ce
3
+ size 71010