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88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
{
  "key": "opt03_ftbc_threshold_balance/ftbc_ticks_16",
  "tag": "ftbc_ticks_16",
  "script": "opt03_ftbc_threshold_balance.py",
  "script_sha256_16": "b61e2bfeb6416b99",
  "hf_folder": "applied/opt03_ftbc_threshold_balance",
  "priority": 1,
  "note": "",
  "phase": 3,
  "n_phases": 10,
  "method": "harmonic_matched",
  "command": [
    "/usr/bin/python3",
    "-m",
    "torch.distributed.run",
    "--standalone",
    "--nproc_per_node=2",
    "/kaggle/working/scripts/opt03_ftbc_threshold_balance.py",
    "--method",
    "harmonic_matched",
    "--data-root",
    "/kaggle/working/data",
    "--epochs",
    "60",
    "--seed",
    "1234",
    "--batch-size",
    "64",
    "--event-eval",
    "--no-resume",
    "--decision-margin",
    "2.0",
    "--hub-dir",
    "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_ticks_16",
    "--keep-epoch-weights",
    "1",
    "--resplit",
    "block",
    "--drop-rest",
    "--bench",
    "--ftbc-target-ticks",
    "16"
  ],
  "flags": [
    "--ftbc-target-ticks",
    "16"
  ],
  "epochs_requested": 60,
  "gpus": 2,
  "relative_epoch_cost": 1.0,
  "exit_code": 0,
  "status": "ok",
  "duration_s": 382.3,
  "started_utc": "2026-08-23T04:08:10.558032+00:00",
  "finished_utc": "2026-08-23T04:14:32.897057+00:00",
  "optimization_summary": {
    "optimization": "ftbc_threshold_balance",
    "research_section": "2. Temporal-Dimension Reduction (threshold balancing + FTBC)",
    "reference": "Rueckauer et al. arXiv:1612.04052; Sengupta et al. arXiv:1802.02627; FTBC: Forward Temporal Bias Correction, ECCV 2024",
    "script": "opt03_ftbc_threshold_balance.py",
    "baseline_mode": false,
    "method": "harmonic_matched",
    "accuracy": {
      "test_acc": 0.9364285714285714,
      "test_target_acc": 0.9364285714285714,
      "best_val_acc": 0.9442857142857143
    },
    "efficiency": {
      "spikes_per_inference": null,
      "syn_ops_per_inference": 3244621.7719155843,
      "dense_macs_per_inference": 122675200.0,
      "event_fraction_of_dense": 0.02644888104454351,
      "syn_ops_per_inference_dense_fanout": 64821239.558441564,
      "weight_sparsity": 0.7324707846410685,
      "effective_ticks": 11.918571428571429,
      "num_ticks": 100,
      "membrane_bytes_per_inference": 451200,
      "weight_bytes": 4907008,
      "input_raster_bytes": null,
      "train_ms_per_step": 96.6059831000166,
      "infer_ms_per_sample": 0.6313146153124194,
      "peak_vram_mb": 2825.41312
    },
    "optimization_specific": {
      "calibrate_thresh": true,
      "ftbc": true,
      "calib_percentile": 99.9,
      "calib_batches": 8,
      "ftbc_target_ticks": 16,
      "ftbc_ref_ticks": 100,
      "trained_T": 100,
      "thresh_before": [
        1.0,
        1.0,
        1.0,
        1.0
      ],
      "thresh_after": [
        2.3250319957733154,
        0.8496885299682617,
        1.0896447896957397,
        2.718693256378174
      ],
      "min_ticks_within_1pct_of_full": null,
      "min_ticks_within_1pct_per_arm": {
        "raw": 50,
        "thresh": 50,
        "ftbc": null,
        "both": null
      },
      "speedup_at_min_ticks": null,
      "full_T_acc": 0.9407142857142857,
      "t_sweep_rows": [
        {
          "T": 4,
          "arm": "raw",
          "acc": 0.27714285714285714,
          "syn_per_inference": 1864006.8636363635,
          "dense_per_inference": 4907008.0,
          "event_fraction_of_dense": 0.3798662777065706
        },
        {
          "T": 4,
          "arm": "thresh",
          "acc": 0.39714285714285713,
          "syn_per_inference": 1823905.375,
          "dense_per_inference": 4907008.0,
          "event_fraction_of_dense": 0.37169398847525825
        },
        {
          "T": 4,
          "arm": "ftbc",
          "acc": 0.04928571428571429,
          "syn_per_inference": 1930274.5633116884,
          "dense_per_inference": 4907008.0,
          "event_fraction_of_dense": 0.39337098356303646
        },
        {
          "T": 4,
          "arm": "both",
          "acc": 0.125,
          "syn_per_inference": 1898093.5227272727,
          "dense_per_inference": 4907008.0,
          "event_fraction_of_dense": 0.386812803795566
        },
        {
          "T": 8,
          "arm": "raw",
          "acc": 0.5928571428571429,
          "syn_per_inference": 2041726.3392857143,
          "dense_per_inference": 9814016.0,
          "event_fraction_of_dense": 0.2080418800301237
        },
        {
          "T": 8,
          "arm": "thresh",
          "acc": 0.7535714285714286,
          "syn_per_inference": 1945997.961038961,
          "dense_per_inference": 9814016.0,
          "event_fraction_of_dense": 0.19828762873822103
        },
        {
          "T": 8,
          "arm": "ftbc",
          "acc": 0.065,
          "syn_per_inference": 2173312.650974026,
          "dense_per_inference": 9814016.0,
          "event_fraction_of_dense": 0.22144987851803236
        },
        {
          "T": 8,
          "arm": "both",
          "acc": 0.24714285714285714,
          "syn_per_inference": 2095535.9318181819,
          "dense_per_inference": 9814016.0,
          "event_fraction_of_dense": 0.2135248130651287
        },
        {
          "T": 16,
          "arm": "raw",
          "acc": 0.7935714285714286,
          "syn_per_inference": 2324438.898538961,
          "dense_per_inference": 19628032.0,
          "event_fraction_of_dense": 0.11842445022195608
        },
        {
          "T": 16,
          "arm": "thresh",
          "acc": 0.895,
          "syn_per_inference": 2115607.2045454546,
          "dense_per_inference": 19628032.0,
          "event_fraction_of_dense": 0.10778498855847873
        },
        {
          "T": 16,
          "arm": "ftbc",
          "acc": 0.26285714285714284,
          "syn_per_inference": 2626865.0324675324,
          "dense_per_inference": 19628032.0,
          "event_fraction_of_dense": 0.1338323186179609
        },
        {
          "T": 16,
          "arm": "both",
          "acc": 0.5564285714285714,
          "syn_per_inference": 2485868.408279221,
          "dense_per_inference": 19628032.0,
          "event_fraction_of_dense": 0.1266488870753431
        },
        {
          "T": 25,
          "arm": "raw",
          "acc": 0.87,
          "syn_per_inference": 2540346.3376623373,
          "dense_per_inference": 30668800.0,
          "event_fraction_of_dense": 0.08283161837640655
        },
        {
          "T": 25,
          "arm": "thresh",
          "acc": 0.9171428571428571,
          "syn_per_inference": 2232137.172077922,
          "dense_per_inference": 30668800.0,
          "event_fraction_of_dense": 0.07278201860124694
        },
        {
          "T": 25,
          "arm": "ftbc",
          "acc": 0.6721428571428572,
          "syn_per_inference": 2910014.7816558443,
          "dense_per_inference": 30668800.0,
          "event_fraction_of_dense": 0.09488518564977581
        },
        {
          "T": 25,
          "arm": "both",
          "acc": 0.5935714285714285,
          "syn_per_inference": 2680826.768668831,
          "dense_per_inference": 30668800.0,
          "event_fraction_of_dense": 0.08741218334818548
        },
        {
          "T": 50,
          "arm": "raw",
          "acc": 0.9335714285714286,
          "syn_per_inference": 2889483.0446428573,
          "dense_per_inference": 61337600.0,
          "event_fraction_of_dense": 0.04710785952894892
        },
        {
          "T": 50,
          "arm": "thresh",
          "acc": 0.9392857142857143,
          "syn_per_inference": 2412475.600649351,
          "dense_per_inference": 61337600.0,
          "event_fraction_of_dense": 0.03933110523804894
        },
        {
          "T": 50,
          "arm": "ftbc",
          "acc": 0.9114285714285715,
          "syn_per_inference": 3366198.3173701297,
          "dense_per_inference": 61337600.0,
          "event_fraction_of_dense": 0.054879850489261556
        },
        {
          "T": 50,
          "arm": "both",
          "acc": 0.7114285714285714,
          "syn_per_inference": 2968215.874188312,
          "dense_per_inference": 61337600.0,
          "event_fraction_of_dense": 0.048391457673406066
        },
        {
          "T": 100,
          "arm": "raw",
          "acc": 0.9407142857142857,
          "syn_per_inference": 3244621.590097402,
          "dense_per_inference": 122675200.0,
          "event_fraction_of_dense": 0.026448879562433174
        },
        {
          "T": 100,
          "arm": "thresh",
          "acc": 0.9364285714285714,
          "syn_per_inference": 2678800.385551948,
          "dense_per_inference": 122675200.0,
          "event_fraction_of_dense": 0.02183652755856072
        },
        {
          "T": 100,
          "arm": "ftbc",
          "acc": 0.9271428571428572,
          "syn_per_inference": 3865133.496753247,
          "dense_per_inference": 122675200.0,
          "event_fraction_of_dense": 0.031507048667972395
        },
        {
          "T": 100,
          "arm": "both",
          "acc": 0.8257142857142857,
          "syn_per_inference": 3321729.465097402,
          "dense_per_inference": 122675200.0,
          "event_fraction_of_dense": 0.027077432644066625
        }
      ],
      "calibration_reference": "same network at full T (NOT a source ANN)"
    },
    "config": {
      "method": "harmonic_matched",
      "data_root": "/kaggle/working/data",
      "subjects": "",
      "blocks": "",
      "limit": 0,
      "drop_rest": true,
      "resplit": "block",
      "test_blocks": "6",
      "class_weight": false,
      "epochs": 60,
      "batch_size": 64,
      "lr": 0.002,
      "weight_decay": 0.0005,
      "grad_clip": 5.0,
      "num_bins": 100,
      "window_sec": 5.0,
      "hidden": "512,256",
      "freq_groups": 8,
      "dropout": 0.3,
      "spike_drop": 0.1,
      "time_jitter": 2,
      "label_smoothing": 0.05,
      "no_batchnorm": false,
      "binary_input": false,
      "beta": 1.0,
      "thresh": 1.0,
      "window": 0.5,
      "gain": 1.0,
      "alpha": 0.9,
      "readout": "spikecount",
      "fake_quant": 0,
      "amp": false,
      "spike_reg": 0.0,
      "event_eval": true,
      "decision_margin": 2.0,
      "export": false,
      "seed": 1234,
      "hub_dir": "/kaggle/working/hub/opt03_ftbc_threshold_balance/ftbc_ticks_16",
      "repo_id": "UWU-R-13/SSVEP-SNN",
      "push_hf": false,
      "keep_epoch_weights": 1,
      "no_resume": true,
      "selftest": false,
      "baseline": false,
      "bench": true,
      "bench_warmup": 10,
      "bench_iters": 50,
      "bench_train_steps": 20,
      "calibrate_thresh": true,
      "calib_percentile": 99.9,
      "calib_batches": 8,
      "ftbc": true,
      "ftbc_target_ticks": 16,
      "ftbc_ref_ticks": 0,
      "ftbc_lr": 1.0,
      "t_sweep": "4,8,16,25,50,100",
      "sampling_rate": 250.0
    }
  },
  "final_summary": {
    "final_test_acc": 0.9407142857142857,
    "final_test_target_acc": 0.9407142857142857,
    "final_test_rest_recall": NaN,
    "best_acc": 0.9442857142857143,
    "best_epoch": 28,
    "resplit": "block",
    "class_weight": false,
    "drop_rest": true,
    "epochs": 60,
    "method": "harmonic_matched",
    "n_in": 2880,
    "n_classes": 40,
    "num_bins": 100
  },
  "event_driven_summary": {
    "acc": 0.9407142857142857,
    "anytime_acc": {
      "0.25": 0.6285714285714286,
      "0.5": 0.8485714285714285,
      "0.75": 0.9128571428571428,
      "1.0": 0.9407142857142857
    },
    "syn_per_inference": 3244621.7719155843,
    "dense_per_inference": 122675200.0,
    "event_fraction_of_dense": 0.02644888104454351,
    "syn_per_inference_dense_fanout": 64821239.558441564,
    "weight_sparsity": 0.7324707846410685,
    "num_ticks": 100,
    "dt_ms": 50.0,
    "margin_decision_acc": 0.4421428571428571,
    "mean_decision_tick": 11.918571428571429,
    "mean_decision_ms": 595.9285714285714,
    "dense_forward_test_acc": 0.9407142857142857
  },
  "extra_sweep_file_present": true,
  "selftest": {
    "mode": "gate",
    "passed": true
  },
  "driver_version": 1,
  "zip": {
    "name": "ftbc_ticks_16.zip",
    "files": 81,
    "bytes": 12244811,
    "MB": 12.2,
    "sha256": "61b2fe0303d978b5bcb5292e8785f2240a28f26bf554b774d10b2ee1024af021"
  }
}