wannabeyourfriend-hf commited on
Commit
871225d
·
verified ·
1 Parent(s): 73aa819

Release minimal standardized MBR origin-delta data

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-regression
5
+ language:
6
+ - en
7
+ tags:
8
+ - eye-tracking
9
+ - gaze-calibration
10
+ - multi-baseline
11
+ - residual-learning
12
+ pretty_name: Gaze Refine MBR Origin-Delta Data
13
+ size_categories:
14
+ - 10K<n<100K
15
+ ---
16
+
17
+ # Gaze Refine MBR Origin-Delta Data
18
+
19
+ Minimal Hugging Face data release for the corrected multi-baseline residual
20
+ gaze calibration experiment.
21
+
22
+ This dataset contains only standardized train/validation/test CSV files,
23
+ `data/manifest.json`, and minimal data preparation/validation scripts. Training
24
+ code is released separately on GitHub:
25
+
26
+ [wangzixuan-looki/gaze-refine-mbr-origin-delta-release](https://github.com/wangzixuan-looki/gaze-refine-mbr-origin-delta-release)
27
+
28
+ ## Feature Definition
29
+
30
+ The corrected experiment uses:
31
+
32
+ ```text
33
+ input = [origin_gaze, baseline_1 - origin_gaze, ..., baseline_K - origin_gaze]
34
+ target = target - origin_gaze
35
+ final = origin_gaze + model(input)
36
+ ```
37
+
38
+ The released CSVs provide `origin_gaze_x`, `origin_gaze_y`, `target_x`,
39
+ `target_y`, and classical baseline prediction columns such as
40
+ `pred_sim_rbf_multiquadric_s1.0_x/y`.
41
+
42
+ ## Files
43
+
44
+ - `data/self_all_trials_csv_{train,val,test}.csv`
45
+ - `data/self_s1_csv_{train,val,test}.csv`
46
+ - `data/judo_1000_csv_{train,val,test}.csv`
47
+ - `data/manifest.json`
48
+ - `scripts/standardize_datasets.py`
49
+ - `scripts/validate_release.py`
50
+
51
+ Subject identifiers are anonymized per dataset as `s_1`, `s_2`, ... .
52
+ Timestamp/session identifiers are anonymized as `t_1`, `t_2`, ... .
53
+
54
+ ## Load
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ ds = load_dataset(
60
+ "wannabeyourfriend-hf/gaze-refine-mbr-origin-delta-release",
61
+ data_files={
62
+ "train": "data/judo_1000_csv_train.csv",
63
+ "validation": "data/judo_1000_csv_val.csv",
64
+ "test": "data/judo_1000_csv_test.csv",
65
+ },
66
+ )
67
+ ```
68
+
69
+ ## Validate
70
+
71
+ ```bash
72
+ python scripts/validate_release.py --data-dir data
73
+ ```
data/judo_1000_csv_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/judo_1000_csv_train.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/judo_1000_csv_val.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/manifest.json ADDED
@@ -0,0 +1,476 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "dataset": "self_all_trials",
4
+ "source_name": "all_trials_split",
5
+ "split": "train",
6
+ "file": "self_all_trials_csv_train.csv",
7
+ "rows": 1514,
8
+ "n_subjects": 12,
9
+ "subject_ids_anonymized": true,
10
+ "timestamp_ids_anonymized": true,
11
+ "columns": [
12
+ "dataset",
13
+ "split",
14
+ "sample_id",
15
+ "subject",
16
+ "timestamp",
17
+ "target_index",
18
+ "origin_gaze_x",
19
+ "origin_gaze_y",
20
+ "target_x",
21
+ "target_y",
22
+ "spread",
23
+ "n_samples",
24
+ "pred_similarity_x",
25
+ "pred_similarity_y",
26
+ "pred_poly_x",
27
+ "pred_poly_y",
28
+ "pred_rbf_thin_plate_s1.0_x",
29
+ "pred_rbf_thin_plate_s1.0_y",
30
+ "pred_rbf_multiquadric_s0.0_x",
31
+ "pred_rbf_multiquadric_s0.0_y",
32
+ "pred_rbf_multiquadric_s1.0_x",
33
+ "pred_rbf_multiquadric_s1.0_y",
34
+ "pred_rbf_multiquadric_s2.0_x",
35
+ "pred_rbf_multiquadric_s2.0_y",
36
+ "pred_tps_x",
37
+ "pred_tps_y",
38
+ "pred_pwa_x",
39
+ "pred_pwa_y",
40
+ "pred_gpr_x",
41
+ "pred_gpr_y",
42
+ "pred_sim_rbf_thin_plate_s1.0_x",
43
+ "pred_sim_rbf_thin_plate_s1.0_y",
44
+ "pred_sim_rbf_multiquadric_s0.0_x",
45
+ "pred_sim_rbf_multiquadric_s0.0_y",
46
+ "pred_sim_rbf_multiquadric_s1.0_x",
47
+ "pred_sim_rbf_multiquadric_s1.0_y",
48
+ "pred_sim_rbf_multiquadric_s2.0_x",
49
+ "pred_sim_rbf_multiquadric_s2.0_y",
50
+ "pred_sim_tps_x",
51
+ "pred_sim_tps_y",
52
+ "pred_sim_pwa_x",
53
+ "pred_sim_pwa_y",
54
+ "pred_sim_gpr_x",
55
+ "pred_sim_gpr_y"
56
+ ]
57
+ },
58
+ {
59
+ "dataset": "self_all_trials",
60
+ "source_name": "all_trials_split",
61
+ "split": "val",
62
+ "file": "self_all_trials_csv_val.csv",
63
+ "rows": 506,
64
+ "n_subjects": 11,
65
+ "subject_ids_anonymized": true,
66
+ "timestamp_ids_anonymized": true,
67
+ "columns": [
68
+ "dataset",
69
+ "split",
70
+ "sample_id",
71
+ "subject",
72
+ "timestamp",
73
+ "target_index",
74
+ "origin_gaze_x",
75
+ "origin_gaze_y",
76
+ "target_x",
77
+ "target_y",
78
+ "spread",
79
+ "n_samples",
80
+ "pred_similarity_x",
81
+ "pred_similarity_y",
82
+ "pred_poly_x",
83
+ "pred_poly_y",
84
+ "pred_rbf_thin_plate_s1.0_x",
85
+ "pred_rbf_thin_plate_s1.0_y",
86
+ "pred_rbf_multiquadric_s0.0_x",
87
+ "pred_rbf_multiquadric_s0.0_y",
88
+ "pred_rbf_multiquadric_s1.0_x",
89
+ "pred_rbf_multiquadric_s1.0_y",
90
+ "pred_rbf_multiquadric_s2.0_x",
91
+ "pred_rbf_multiquadric_s2.0_y",
92
+ "pred_tps_x",
93
+ "pred_tps_y",
94
+ "pred_pwa_x",
95
+ "pred_pwa_y",
96
+ "pred_gpr_x",
97
+ "pred_gpr_y",
98
+ "pred_sim_rbf_thin_plate_s1.0_x",
99
+ "pred_sim_rbf_thin_plate_s1.0_y",
100
+ "pred_sim_rbf_multiquadric_s0.0_x",
101
+ "pred_sim_rbf_multiquadric_s0.0_y",
102
+ "pred_sim_rbf_multiquadric_s1.0_x",
103
+ "pred_sim_rbf_multiquadric_s1.0_y",
104
+ "pred_sim_rbf_multiquadric_s2.0_x",
105
+ "pred_sim_rbf_multiquadric_s2.0_y",
106
+ "pred_sim_tps_x",
107
+ "pred_sim_tps_y",
108
+ "pred_sim_pwa_x",
109
+ "pred_sim_pwa_y",
110
+ "pred_sim_gpr_x",
111
+ "pred_sim_gpr_y"
112
+ ]
113
+ },
114
+ {
115
+ "dataset": "self_all_trials",
116
+ "source_name": "all_trials_split",
117
+ "split": "test",
118
+ "file": "self_all_trials_csv_test.csv",
119
+ "rows": 506,
120
+ "n_subjects": 12,
121
+ "subject_ids_anonymized": true,
122
+ "timestamp_ids_anonymized": true,
123
+ "columns": [
124
+ "dataset",
125
+ "split",
126
+ "sample_id",
127
+ "subject",
128
+ "timestamp",
129
+ "target_index",
130
+ "origin_gaze_x",
131
+ "origin_gaze_y",
132
+ "target_x",
133
+ "target_y",
134
+ "spread",
135
+ "n_samples",
136
+ "pred_similarity_x",
137
+ "pred_similarity_y",
138
+ "pred_poly_x",
139
+ "pred_poly_y",
140
+ "pred_rbf_thin_plate_s1.0_x",
141
+ "pred_rbf_thin_plate_s1.0_y",
142
+ "pred_rbf_multiquadric_s0.0_x",
143
+ "pred_rbf_multiquadric_s0.0_y",
144
+ "pred_rbf_multiquadric_s1.0_x",
145
+ "pred_rbf_multiquadric_s1.0_y",
146
+ "pred_rbf_multiquadric_s2.0_x",
147
+ "pred_rbf_multiquadric_s2.0_y",
148
+ "pred_tps_x",
149
+ "pred_tps_y",
150
+ "pred_pwa_x",
151
+ "pred_pwa_y",
152
+ "pred_gpr_x",
153
+ "pred_gpr_y",
154
+ "pred_sim_rbf_thin_plate_s1.0_x",
155
+ "pred_sim_rbf_thin_plate_s1.0_y",
156
+ "pred_sim_rbf_multiquadric_s0.0_x",
157
+ "pred_sim_rbf_multiquadric_s0.0_y",
158
+ "pred_sim_rbf_multiquadric_s1.0_x",
159
+ "pred_sim_rbf_multiquadric_s1.0_y",
160
+ "pred_sim_rbf_multiquadric_s2.0_x",
161
+ "pred_sim_rbf_multiquadric_s2.0_y",
162
+ "pred_sim_tps_x",
163
+ "pred_sim_tps_y",
164
+ "pred_sim_pwa_x",
165
+ "pred_sim_pwa_y",
166
+ "pred_sim_gpr_x",
167
+ "pred_sim_gpr_y"
168
+ ]
169
+ },
170
+ {
171
+ "dataset": "self_s1",
172
+ "source_name": "s1_for_training",
173
+ "split": "train",
174
+ "file": "self_s1_csv_train.csv",
175
+ "rows": 1027,
176
+ "n_subjects": 1,
177
+ "subject_ids_anonymized": true,
178
+ "timestamp_ids_anonymized": true,
179
+ "columns": [
180
+ "dataset",
181
+ "split",
182
+ "sample_id",
183
+ "subject",
184
+ "timestamp",
185
+ "target_index",
186
+ "origin_gaze_x",
187
+ "origin_gaze_y",
188
+ "target_x",
189
+ "target_y",
190
+ "spread",
191
+ "n_samples",
192
+ "pred_similarity_x",
193
+ "pred_similarity_y",
194
+ "pred_poly_x",
195
+ "pred_poly_y",
196
+ "pred_rbf_thin_plate_s1.0_x",
197
+ "pred_rbf_thin_plate_s1.0_y",
198
+ "pred_rbf_multiquadric_s0.0_x",
199
+ "pred_rbf_multiquadric_s0.0_y",
200
+ "pred_rbf_multiquadric_s1.0_x",
201
+ "pred_rbf_multiquadric_s1.0_y",
202
+ "pred_rbf_multiquadric_s2.0_x",
203
+ "pred_rbf_multiquadric_s2.0_y",
204
+ "pred_tps_x",
205
+ "pred_tps_y",
206
+ "pred_pwa_x",
207
+ "pred_pwa_y",
208
+ "pred_gpr_x",
209
+ "pred_gpr_y",
210
+ "pred_sim_rbf_thin_plate_s1.0_x",
211
+ "pred_sim_rbf_thin_plate_s1.0_y",
212
+ "pred_sim_rbf_multiquadric_s0.0_x",
213
+ "pred_sim_rbf_multiquadric_s0.0_y",
214
+ "pred_sim_rbf_multiquadric_s1.0_x",
215
+ "pred_sim_rbf_multiquadric_s1.0_y",
216
+ "pred_sim_rbf_multiquadric_s2.0_x",
217
+ "pred_sim_rbf_multiquadric_s2.0_y",
218
+ "pred_sim_tps_x",
219
+ "pred_sim_tps_y",
220
+ "pred_sim_pwa_x",
221
+ "pred_sim_pwa_y",
222
+ "pred_sim_gpr_x",
223
+ "pred_sim_gpr_y"
224
+ ]
225
+ },
226
+ {
227
+ "dataset": "self_s1",
228
+ "source_name": "s1_for_training",
229
+ "split": "val",
230
+ "file": "self_s1_csv_val.csv",
231
+ "rows": 343,
232
+ "n_subjects": 1,
233
+ "subject_ids_anonymized": true,
234
+ "timestamp_ids_anonymized": true,
235
+ "columns": [
236
+ "dataset",
237
+ "split",
238
+ "sample_id",
239
+ "subject",
240
+ "timestamp",
241
+ "target_index",
242
+ "origin_gaze_x",
243
+ "origin_gaze_y",
244
+ "target_x",
245
+ "target_y",
246
+ "spread",
247
+ "n_samples",
248
+ "pred_similarity_x",
249
+ "pred_similarity_y",
250
+ "pred_poly_x",
251
+ "pred_poly_y",
252
+ "pred_rbf_thin_plate_s1.0_x",
253
+ "pred_rbf_thin_plate_s1.0_y",
254
+ "pred_rbf_multiquadric_s0.0_x",
255
+ "pred_rbf_multiquadric_s0.0_y",
256
+ "pred_rbf_multiquadric_s1.0_x",
257
+ "pred_rbf_multiquadric_s1.0_y",
258
+ "pred_rbf_multiquadric_s2.0_x",
259
+ "pred_rbf_multiquadric_s2.0_y",
260
+ "pred_tps_x",
261
+ "pred_tps_y",
262
+ "pred_pwa_x",
263
+ "pred_pwa_y",
264
+ "pred_gpr_x",
265
+ "pred_gpr_y",
266
+ "pred_sim_rbf_thin_plate_s1.0_x",
267
+ "pred_sim_rbf_thin_plate_s1.0_y",
268
+ "pred_sim_rbf_multiquadric_s0.0_x",
269
+ "pred_sim_rbf_multiquadric_s0.0_y",
270
+ "pred_sim_rbf_multiquadric_s1.0_x",
271
+ "pred_sim_rbf_multiquadric_s1.0_y",
272
+ "pred_sim_rbf_multiquadric_s2.0_x",
273
+ "pred_sim_rbf_multiquadric_s2.0_y",
274
+ "pred_sim_tps_x",
275
+ "pred_sim_tps_y",
276
+ "pred_sim_pwa_x",
277
+ "pred_sim_pwa_y",
278
+ "pred_sim_gpr_x",
279
+ "pred_sim_gpr_y"
280
+ ]
281
+ },
282
+ {
283
+ "dataset": "self_s1",
284
+ "source_name": "s1_for_training",
285
+ "split": "test",
286
+ "file": "self_s1_csv_test.csv",
287
+ "rows": 343,
288
+ "n_subjects": 1,
289
+ "subject_ids_anonymized": true,
290
+ "timestamp_ids_anonymized": true,
291
+ "columns": [
292
+ "dataset",
293
+ "split",
294
+ "sample_id",
295
+ "subject",
296
+ "timestamp",
297
+ "target_index",
298
+ "origin_gaze_x",
299
+ "origin_gaze_y",
300
+ "target_x",
301
+ "target_y",
302
+ "spread",
303
+ "n_samples",
304
+ "pred_similarity_x",
305
+ "pred_similarity_y",
306
+ "pred_poly_x",
307
+ "pred_poly_y",
308
+ "pred_rbf_thin_plate_s1.0_x",
309
+ "pred_rbf_thin_plate_s1.0_y",
310
+ "pred_rbf_multiquadric_s0.0_x",
311
+ "pred_rbf_multiquadric_s0.0_y",
312
+ "pred_rbf_multiquadric_s1.0_x",
313
+ "pred_rbf_multiquadric_s1.0_y",
314
+ "pred_rbf_multiquadric_s2.0_x",
315
+ "pred_rbf_multiquadric_s2.0_y",
316
+ "pred_tps_x",
317
+ "pred_tps_y",
318
+ "pred_pwa_x",
319
+ "pred_pwa_y",
320
+ "pred_gpr_x",
321
+ "pred_gpr_y",
322
+ "pred_sim_rbf_thin_plate_s1.0_x",
323
+ "pred_sim_rbf_thin_plate_s1.0_y",
324
+ "pred_sim_rbf_multiquadric_s0.0_x",
325
+ "pred_sim_rbf_multiquadric_s0.0_y",
326
+ "pred_sim_rbf_multiquadric_s1.0_x",
327
+ "pred_sim_rbf_multiquadric_s1.0_y",
328
+ "pred_sim_rbf_multiquadric_s2.0_x",
329
+ "pred_sim_rbf_multiquadric_s2.0_y",
330
+ "pred_sim_tps_x",
331
+ "pred_sim_tps_y",
332
+ "pred_sim_pwa_x",
333
+ "pred_sim_pwa_y",
334
+ "pred_sim_gpr_x",
335
+ "pred_sim_gpr_y"
336
+ ]
337
+ },
338
+ {
339
+ "dataset": "judo_1000",
340
+ "source_name": "judo_1000_split_no_leakage",
341
+ "split": "train",
342
+ "file": "judo_1000_csv_train.csv",
343
+ "rows": 5951,
344
+ "n_subjects": 1,
345
+ "subject_ids_anonymized": true,
346
+ "timestamp_ids_anonymized": true,
347
+ "columns": [
348
+ "dataset",
349
+ "split",
350
+ "sample_id",
351
+ "subject",
352
+ "timestamp",
353
+ "target_index",
354
+ "origin_gaze_x",
355
+ "origin_gaze_y",
356
+ "target_x",
357
+ "target_y",
358
+ "spread",
359
+ "n_samples",
360
+ "pred_similarity_x",
361
+ "pred_similarity_y",
362
+ "pred_poly_x",
363
+ "pred_poly_y",
364
+ "pred_rbf_multiquadric_s0.0_x",
365
+ "pred_rbf_multiquadric_s0.0_y",
366
+ "pred_rbf_multiquadric_s1.0_x",
367
+ "pred_rbf_multiquadric_s1.0_y",
368
+ "pred_rbf_multiquadric_s2.0_x",
369
+ "pred_rbf_multiquadric_s2.0_y",
370
+ "pred_tps_x",
371
+ "pred_tps_y",
372
+ "pred_sim_rbf_multiquadric_s0.0_x",
373
+ "pred_sim_rbf_multiquadric_s0.0_y",
374
+ "pred_sim_rbf_multiquadric_s1.0_x",
375
+ "pred_sim_rbf_multiquadric_s1.0_y",
376
+ "pred_sim_rbf_multiquadric_s2.0_x",
377
+ "pred_sim_rbf_multiquadric_s2.0_y",
378
+ "pred_sim_tps_x",
379
+ "pred_sim_tps_y",
380
+ "pred_sim_pwa_x",
381
+ "pred_sim_pwa_y"
382
+ ]
383
+ },
384
+ {
385
+ "dataset": "judo_1000",
386
+ "source_name": "judo_1000_split_no_leakage",
387
+ "split": "val",
388
+ "file": "judo_1000_csv_val.csv",
389
+ "rows": 1698,
390
+ "n_subjects": 1,
391
+ "subject_ids_anonymized": true,
392
+ "timestamp_ids_anonymized": true,
393
+ "columns": [
394
+ "dataset",
395
+ "split",
396
+ "sample_id",
397
+ "subject",
398
+ "timestamp",
399
+ "target_index",
400
+ "origin_gaze_x",
401
+ "origin_gaze_y",
402
+ "target_x",
403
+ "target_y",
404
+ "spread",
405
+ "n_samples",
406
+ "pred_similarity_x",
407
+ "pred_similarity_y",
408
+ "pred_poly_x",
409
+ "pred_poly_y",
410
+ "pred_rbf_multiquadric_s0.0_x",
411
+ "pred_rbf_multiquadric_s0.0_y",
412
+ "pred_rbf_multiquadric_s1.0_x",
413
+ "pred_rbf_multiquadric_s1.0_y",
414
+ "pred_rbf_multiquadric_s2.0_x",
415
+ "pred_rbf_multiquadric_s2.0_y",
416
+ "pred_tps_x",
417
+ "pred_tps_y",
418
+ "pred_sim_rbf_multiquadric_s0.0_x",
419
+ "pred_sim_rbf_multiquadric_s0.0_y",
420
+ "pred_sim_rbf_multiquadric_s1.0_x",
421
+ "pred_sim_rbf_multiquadric_s1.0_y",
422
+ "pred_sim_rbf_multiquadric_s2.0_x",
423
+ "pred_sim_rbf_multiquadric_s2.0_y",
424
+ "pred_sim_tps_x",
425
+ "pred_sim_tps_y",
426
+ "pred_sim_pwa_x",
427
+ "pred_sim_pwa_y"
428
+ ]
429
+ },
430
+ {
431
+ "dataset": "judo_1000",
432
+ "source_name": "judo_1000_split_no_leakage",
433
+ "split": "test",
434
+ "file": "judo_1000_csv_test.csv",
435
+ "rows": 1927,
436
+ "n_subjects": 1,
437
+ "subject_ids_anonymized": true,
438
+ "timestamp_ids_anonymized": true,
439
+ "columns": [
440
+ "dataset",
441
+ "split",
442
+ "sample_id",
443
+ "subject",
444
+ "timestamp",
445
+ "target_index",
446
+ "origin_gaze_x",
447
+ "origin_gaze_y",
448
+ "target_x",
449
+ "target_y",
450
+ "spread",
451
+ "n_samples",
452
+ "pred_similarity_x",
453
+ "pred_similarity_y",
454
+ "pred_poly_x",
455
+ "pred_poly_y",
456
+ "pred_rbf_multiquadric_s0.0_x",
457
+ "pred_rbf_multiquadric_s0.0_y",
458
+ "pred_rbf_multiquadric_s1.0_x",
459
+ "pred_rbf_multiquadric_s1.0_y",
460
+ "pred_rbf_multiquadric_s2.0_x",
461
+ "pred_rbf_multiquadric_s2.0_y",
462
+ "pred_tps_x",
463
+ "pred_tps_y",
464
+ "pred_sim_rbf_multiquadric_s0.0_x",
465
+ "pred_sim_rbf_multiquadric_s0.0_y",
466
+ "pred_sim_rbf_multiquadric_s1.0_x",
467
+ "pred_sim_rbf_multiquadric_s1.0_y",
468
+ "pred_sim_rbf_multiquadric_s2.0_x",
469
+ "pred_sim_rbf_multiquadric_s2.0_y",
470
+ "pred_sim_tps_x",
471
+ "pred_sim_tps_y",
472
+ "pred_sim_pwa_x",
473
+ "pred_sim_pwa_y"
474
+ ]
475
+ }
476
+ ]
data/self_all_trials_csv_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/self_all_trials_csv_train.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/self_all_trials_csv_val.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/self_s1_csv_test.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/self_s1_csv_train.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/self_s1_csv_val.csv ADDED
The diff for this file is too large to render. See raw diff
 
scripts/standardize_datasets.py ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Build release-ready train/val/test CSVs.
2
+
3
+ Input datasets live in the development checkout. Output files use stable names:
4
+
5
+ self_all_trials_csv_train.csv
6
+ self_all_trials_csv_val.csv
7
+ self_all_trials_csv_test.csv
8
+ self_s1_csv_train.csv
9
+ ...
10
+ judo_1000_csv_train.csv
11
+
12
+ The standard schema keeps only metadata, origin/target coordinates, sample
13
+ quality fields, and classical baseline predictions. Legacy calibration-context
14
+ columns such as test_x_0/test_y_0 are intentionally excluded from the release.
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import argparse
19
+ import json
20
+ from pathlib import Path
21
+ from typing import Dict, List
22
+
23
+ import numpy as np
24
+ import pandas as pd
25
+
26
+
27
+ DATASETS: Dict[str, Dict[str, str]] = {
28
+ "self_all_trials": {
29
+ "source_name": "all_trials_split",
30
+ "release_prefix": "self_all_trials_csv",
31
+ },
32
+ "self_s1": {
33
+ "source_name": "s1_for_training",
34
+ "release_prefix": "self_s1_csv",
35
+ },
36
+ "judo_1000": {
37
+ "source_name": "judo_1000_split_no_leakage",
38
+ "release_prefix": "judo_1000_csv",
39
+ },
40
+ }
41
+
42
+ BASELINE_PREFIXES = [
43
+ "pred_similarity",
44
+ "pred_poly",
45
+ "pred_rbf_thin_plate_s1.0",
46
+ "pred_rbf_multiquadric_s0.0",
47
+ "pred_rbf_multiquadric_s1.0",
48
+ "pred_rbf_multiquadric_s2.0",
49
+ "pred_tps",
50
+ "pred_pwa",
51
+ "pred_gpr",
52
+ "pred_sim_rbf_thin_plate_s1.0",
53
+ "pred_sim_rbf_multiquadric_s0.0",
54
+ "pred_sim_rbf_multiquadric_s1.0",
55
+ "pred_sim_rbf_multiquadric_s2.0",
56
+ "pred_sim_tps",
57
+ "pred_sim_pwa",
58
+ "pred_sim_gpr",
59
+ ]
60
+
61
+ META_COLUMNS = [
62
+ "dataset",
63
+ "split",
64
+ "sample_id",
65
+ "subject",
66
+ "timestamp",
67
+ "target_index",
68
+ "origin_gaze_x",
69
+ "origin_gaze_y",
70
+ "target_x",
71
+ "target_y",
72
+ "spread",
73
+ "n_samples",
74
+ ]
75
+
76
+
77
+ def add_if_missing(df: pd.DataFrame, column: str, value) -> None:
78
+ if column not in df.columns:
79
+ df[column] = value
80
+
81
+
82
+ def make_stable_map(values: List[str], prefix: str) -> Dict[str, str]:
83
+ unique = sorted({str(v) for v in values})
84
+ return {value: f"{prefix}_{i + 1}" for i, value in enumerate(unique)}
85
+
86
+
87
+ def standardize_frame(
88
+ df: pd.DataFrame,
89
+ dataset: str,
90
+ split: str,
91
+ *,
92
+ subject_map: Dict[str, str],
93
+ timestamp_map: Dict[str, str],
94
+ ) -> pd.DataFrame:
95
+ df = df.copy()
96
+
97
+ if "original_gaze_x" in df.columns and "origin_gaze_x" not in df.columns:
98
+ df = df.rename(columns={"original_gaze_x": "origin_gaze_x", "original_gaze_y": "origin_gaze_y"})
99
+
100
+ if "sim_rbf_gaze_x" in df.columns and "pred_sim_rbf_multiquadric_s1.0_x" not in df.columns:
101
+ df["pred_sim_rbf_multiquadric_s1.0_x"] = df["sim_rbf_gaze_x"]
102
+ df["pred_sim_rbf_multiquadric_s1.0_y"] = df["sim_rbf_gaze_y"]
103
+
104
+ add_if_missing(df, "subject", "unknown_subject")
105
+ add_if_missing(df, "timestamp", "unknown_timestamp")
106
+ add_if_missing(df, "target_index", -1)
107
+ add_if_missing(df, "spread", np.nan)
108
+ add_if_missing(df, "n_samples", np.nan)
109
+
110
+ df["subject"] = df["subject"].astype(str).map(subject_map).fillna("s_1")
111
+ df["timestamp"] = df["timestamp"].astype(str).map(timestamp_map).fillna("t_1")
112
+
113
+ df.insert(0, "dataset", dataset)
114
+ df.insert(1, "split", split)
115
+ df.insert(2, "sample_id", [f"{dataset}_{split}_{i:07d}" for i in range(len(df))])
116
+
117
+ baseline_cols: List[str] = []
118
+ for prefix in BASELINE_PREFIXES:
119
+ x, y = f"{prefix}_x", f"{prefix}_y"
120
+ if x in df.columns and y in df.columns:
121
+ baseline_cols.extend([x, y])
122
+
123
+ cols = [c for c in META_COLUMNS if c in df.columns] + baseline_cols
124
+ out = df[cols].copy()
125
+
126
+ required = ["origin_gaze_x", "origin_gaze_y", "target_x", "target_y"]
127
+ missing = [c for c in required if c not in out.columns]
128
+ if missing:
129
+ raise ValueError(f"{dataset}/{split} missing required columns: {missing}")
130
+
131
+ return out
132
+
133
+
134
+ def main() -> None:
135
+ parser = argparse.ArgumentParser(description="Create standardized release CSVs")
136
+ parser.add_argument("--source-root", type=Path, required=True)
137
+ parser.add_argument("--output-dir", type=Path, default=Path("data"))
138
+ args = parser.parse_args()
139
+
140
+ args.output_dir.mkdir(parents=True, exist_ok=True)
141
+ manifest = []
142
+
143
+ for dataset, info in DATASETS.items():
144
+ source_dir = args.source_root / "data" / "prepared" / info["source_name"]
145
+ raw_frames = {}
146
+ subject_values: List[str] = []
147
+ timestamp_values: List[str] = []
148
+ for split in ["train", "val", "test"]:
149
+ src = source_dir / f"{split}.csv"
150
+ if not src.exists():
151
+ raise FileNotFoundError(src)
152
+ raw = pd.read_csv(src)
153
+ raw_frames[split] = raw
154
+ if "subject" in raw.columns:
155
+ subject_values.extend(raw["subject"].astype(str).tolist())
156
+ else:
157
+ subject_values.append("unknown_subject")
158
+ if "timestamp" in raw.columns:
159
+ timestamp_values.extend(raw["timestamp"].astype(str).tolist())
160
+ else:
161
+ timestamp_values.append("unknown_timestamp")
162
+
163
+ subject_map = make_stable_map(subject_values, "s")
164
+ timestamp_map = make_stable_map(timestamp_values, "t")
165
+
166
+ for split in ["train", "val", "test"]:
167
+ df = standardize_frame(
168
+ raw_frames[split],
169
+ dataset,
170
+ split,
171
+ subject_map=subject_map,
172
+ timestamp_map=timestamp_map,
173
+ )
174
+ out_name = f"{info['release_prefix']}_{split}.csv"
175
+ out_path = args.output_dir / out_name
176
+ df.to_csv(out_path, index=False)
177
+ manifest.append(
178
+ {
179
+ "dataset": dataset,
180
+ "source_name": info["source_name"],
181
+ "split": split,
182
+ "file": out_name,
183
+ "rows": int(len(df)),
184
+ "n_subjects": int(df["subject"].nunique()),
185
+ "subject_ids_anonymized": True,
186
+ "timestamp_ids_anonymized": True,
187
+ "columns": list(df.columns),
188
+ }
189
+ )
190
+ print(f"wrote {out_path} rows={len(df)} cols={len(df.columns)}")
191
+
192
+ (args.output_dir / "manifest.json").write_text(json.dumps(manifest, indent=2))
193
+
194
+
195
+ if __name__ == "__main__":
196
+ main()
scripts/validate_release.py ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Validate standardized release CSVs.
2
+
3
+ Checks that each manifest entry exists, has the expected row count and required
4
+ columns, and uses anonymized subject/timestamp identifiers.
5
+ """
6
+ from __future__ import annotations
7
+
8
+ import argparse
9
+ import csv
10
+ import json
11
+ import re
12
+ from pathlib import Path
13
+
14
+
15
+ REQUIRED_COLUMNS = {
16
+ "dataset",
17
+ "split",
18
+ "sample_id",
19
+ "subject",
20
+ "timestamp",
21
+ "origin_gaze_x",
22
+ "origin_gaze_y",
23
+ "target_x",
24
+ "target_y",
25
+ }
26
+
27
+ SUBJECT_RE = re.compile(r"^s_\d+$")
28
+ TIMESTAMP_RE = re.compile(r"^t_\d+$")
29
+
30
+
31
+ def validate_file(data_dir: Path, entry: dict) -> None:
32
+ path = data_dir / entry["file"]
33
+ if not path.exists():
34
+ raise FileNotFoundError(path)
35
+
36
+ with path.open(newline="") as f:
37
+ reader = csv.DictReader(f)
38
+ if reader.fieldnames is None:
39
+ raise ValueError(f"{path} has no header")
40
+ missing = REQUIRED_COLUMNS.difference(reader.fieldnames)
41
+ if missing:
42
+ raise ValueError(f"{path} missing required columns: {sorted(missing)}")
43
+
44
+ rows = 0
45
+ for row in reader:
46
+ rows += 1
47
+ subject = row.get("subject", "")
48
+ timestamp = row.get("timestamp", "")
49
+ if not SUBJECT_RE.match(subject):
50
+ raise ValueError(f"{path} has non-anonymized subject value: {subject!r}")
51
+ if not TIMESTAMP_RE.match(timestamp):
52
+ raise ValueError(f"{path} has non-anonymized timestamp value: {timestamp!r}")
53
+
54
+ expected_rows = int(entry["rows"])
55
+ if rows != expected_rows:
56
+ raise ValueError(f"{path} row count mismatch: expected {expected_rows}, got {rows}")
57
+
58
+
59
+ def main() -> None:
60
+ parser = argparse.ArgumentParser(description="Validate released gaze CSVs")
61
+ parser.add_argument("--data-dir", type=Path, default=Path("data"))
62
+ args = parser.parse_args()
63
+
64
+ manifest_path = args.data_dir / "manifest.json"
65
+ manifest = json.loads(manifest_path.read_text())
66
+ for entry in manifest:
67
+ validate_file(args.data_dir, entry)
68
+
69
+ print(f"validated {len(manifest)} CSV entries in {args.data_dir}")
70
+
71
+
72
+ if __name__ == "__main__":
73
+ main()