ivanjaenm commited on
Commit
84e0469
·
verified ·
1 Parent(s): acc5244

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md CHANGED
@@ -73,3 +73,65 @@ configs:
73
  - split: test_ood
74
  path: data/test_ood-*
75
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  - split: test_ood
74
  path: data/test_ood-*
75
  ---
76
+
77
+ # ToR-OT v2 synthetic optimal-transport corpus
78
+
79
+ Discrete Kantorovich instances with exact sparse optimal plans, generated by
80
+ `python -m torot.data.generate` from the ToR-OT code release
81
+ ("Learning Optimal Transport Plans Via Autoregressive Token Regression", NeurIPS 2026).
82
+
83
+ Each record is one instance:
84
+
85
+ | field | description |
86
+ |---|---|
87
+ | `n`, `m` | number of source / target bins |
88
+ | `dim` | support dimension (1) |
89
+ | `cost_type` | one of `sqeuclidean`, `euclidean`, `cityblock`, `chebyshev`, `minkowski`, `canberra` |
90
+ | `coords_src`, `coords_tgt` | bin centres of a regular grid on [0,1], canonical order |
91
+ | `a`, `b` | marginals (float64, sum to 1); uniformly random weights for the random splits |
92
+ | `plan_rows`, `plan_cols`, `plan_vals` | COO of the optimal plan returned by POT's network simplex (`ot.emd`) |
93
+ | `ot_cost` | optimal cost with the max-normalised cost matrix |
94
+ | `family_src`, `family_tgt` | `uniform_random`, or the named density for the OOD evaluation split |
95
+ | `seed` | per-instance seed (instances are fully reproducible) |
96
+
97
+ The cost matrix is not stored; it is `torot.data.cost.cost_matrix(coords_src, coords_tgt, cost_type)`.
98
+
99
+ ## Splits
100
+
101
+ | split | instances |
102
+ |---|---|
103
+ | `train` | 2000000 |
104
+ | `val` | 5000 |
105
+ | `test_id` | 10000 |
106
+ | `test_extrap` | 5000 |
107
+ | `test_ood` | 1728 |
108
+
109
+ ## Generation configuration
110
+
111
+ ```json
112
+ {
113
+ "n_min": 5,
114
+ "n_max": 100,
115
+ "extrap_n_min": 120,
116
+ "extrap_n_max": 200,
117
+ "equal_sizes": true,
118
+ "cost_types": [
119
+ "sqeuclidean",
120
+ "euclidean",
121
+ "cityblock",
122
+ "chebyshev",
123
+ "minkowski",
124
+ "canberra"
125
+ ],
126
+ "ood_sizes": [
127
+ 30,
128
+ 100
129
+ ]
130
+ }
131
+ ```
132
+
133
+ Command:
134
+
135
+ ```
136
+ python -m torot.data.generate --out_dir ./otdata_v2 --train 2000000 --val 5000 --test_id 10000 --test_extrap 5000 --seed 0 --workers 12 --repo_id ivanjaenm/torot_data_2M --push
137
+ ```