diff --git a/.gitattributes b/.gitattributes index 98a20a7e22f42aee27c56f8ecb22cea4f1d2a280..f7039d3c8a7ada80cc6357940727150c4c471a5d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text experiments/2026-11-24_exp001_labram_vs_codebrain/plots/codebook_signal_reconstruction.png filter=lfs diff=lfs merge=lfs -text experiments/2026-11-24_exp001_labram_vs_codebrain/plots/mumtaz_tsne_analysis.png filter=lfs diff=lfs merge=lfs -text +experiments/2026-11-24_exp002_discrete_vs_continuous/plots/exp002_discrete_vs_continuous.png filter=lfs diff=lfs merge=lfs -text diff --git a/INDEX.json b/INDEX.json index 3d3ea9b1377326755aeec74368dfae9b1c013135..2cda54d696532b1e326c846125ce236779477ef7 100644 --- a/INDEX.json +++ b/INDEX.json @@ -16,6 +16,30 @@ "codebrain": 0.5373 }, "path": "experiments/2026-11-24_exp001_labram_vs_codebrain" + }, + { + "exp_id": "2026-11-24_exp002_discrete_vs_continuous", + "date": "2026-11-24", + "title": "Discretization (VQ-MLM) vs Continuous MAE vs Continuous JEPA on Identical LaBraM ViT", + "status": "completed", + "variants": [ + "discrete_vq", + "continuous_mae", + "continuous_jepa" + ], + "mean_primary": { + "linear_probe": { + "discrete_vq": 0.4162, + "continuous_mae": 0.3854, + "continuous_jepa": 0.471 + }, + "finetune": { + "discrete_vq": 0.5335, + "continuous_mae": 0.501, + "continuous_jepa": 0.5098 + } + }, + "path": "experiments/2026-11-24_exp002_discrete_vs_continuous" } ] } diff --git a/README.md b/README.md index 9d7f48282efbe866a72e48fceb4aa6ac99a1f1b1..8b57c577d31cc3f3a5171ae5877c64ffaf52458e 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,4 @@ Each experiment lives under `experiments/_/` and contains: | Experiment ID | Date | Status | Variants | Headline (8-Task Mean Primary) | | --- | --- | --- | --- | --- | | [`2026-11-24_exp001_labram_vs_codebrain`](experiments/2026-11-24_exp001_labram_vs_codebrain/README.md) | 2026-11-24 | `completed` | `labram-vq-nsp`, `codebrain-tfdual-vq` | LaBraM `0.5335` / CodeBrain `0.5373` | +| [`2026-11-24_exp002_discrete_vs_continuous`](experiments/2026-11-24_exp002_discrete_vs_continuous/README.md) | 2026-11-24 | `completed` | `discrete_vq`, `continuous_mae`, `continuous_jepa` | LP: VQ `0.4162` / MAE `0.3854` / JEPA `0.4710` \| FT: VQ `0.5335` / MAE `0.5010` / JEPA `0.5098` | diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/README.md b/experiments/2026-11-24_exp002_discrete_vs_continuous/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e74536c5f66bec960f1b955194f000ead843c2dc --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/README.md @@ -0,0 +1,34 @@ +# 2026-11-24_exp002_discrete_vs_continuous: Discretization (VQ-MLM) vs Continuous MAE vs Continuous JEPA on Identical LaBraM ViT + +- **Controlled Variables**: Identical `LaBraMEncoder` (12-layer ViT, `embed_dim=200`, `10` heads), identical TUEG `48.7M` patches (`500` steps × `128` × `4`), identical `mask_ratio=0.5`, identical 8-task downstream splits. +- **Only Variable Changed**: Pretraining objective (`discrete_vq` vs `continuous_mae` vs `continuous_jepa`). + +## 1. Linear Probe (Frozen Backbone, 30 epochs) + +| Dataset | Metric | Discrete VQ-MLM | Continuous MAE | Continuous JEPA | +| --- | --- | ---: | ---: | ---: | +| `eegmat` | `auroc` | 0.7030 | 0.6578 | 0.6495 | +| `bciciv2a` | `kappa` | 0.2731 | 0.0799 | 0.2269 | +| `mumtaz` | `auroc` | 0.9290 | 0.9009 | 0.9318 | +| `bcic2020-3` | `kappa` | -0.0017 | 0.0033 | 0.2333 | +| `shu-mi` | `auroc` | 0.6222 | 0.6107 | 0.6632 | +| `physionet-mi` | `kappa` | 0.3566 | 0.3780 | 0.4113 | +| `faced` | `kappa` | -0.0006 | 0.0000 | 0.1133 | +| `tuev` | `kappa` | 0.4482 | 0.4528 | 0.5385 | +| **Mean Primary** | — | **0.4162** | **0.3854** | **0.4710** | + +## 2. Full Fine-Tuning (50 epochs) + +| Dataset | Metric | Discrete VQ-MLM | Continuous MAE | Continuous JEPA | +| --- | --- | ---: | ---: | ---: | +| `eegmat` | `auroc` | 0.7264 | 0.6121 | 0.6232 | +| `bciciv2a` | `kappa` | 0.3032 | 0.2280 | 0.2292 | +| `mumtaz` | `auroc` | 0.9532 | 0.9487 | 0.9549 | +| `bcic2020-3` | `kappa` | 0.2833 | 0.1800 | 0.2250 | +| `shu-mi` | `auroc` | 0.6361 | 0.6621 | 0.6575 | +| `physionet-mi` | `kappa` | 0.4247 | 0.4246 | 0.4358 | +| `faced` | `kappa` | 0.3679 | 0.3989 | 0.3921 | +| `tuev` | `kappa` | 0.5733 | 0.5533 | 0.5604 | +| **Mean Primary** | — | **0.5335** | **0.5010** | **0.5098** | + +![Comparison](plots/exp002_discrete_vs_continuous.png) diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/config.json b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/config.json new file mode 100644 index 0000000000000000000000000000000000000000..8a58ae197cd4731002f9551536e509a64ab191d4 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/config.json @@ -0,0 +1,337 @@ +{ + "encoder_name": "labram", + "encoder": { + "sample_rate": 200, + "patch_size": 200, + "input_scale": 1.0, + "tail_policy": "error", + "embed_dim": 200, + "out_chans": 8, + "depth": 12, + "num_heads": 10, + "mlp_ratio": 4.0, + "qkv_bias": false, + "norm_eps": 1e-06, + "drop_rate": 0.0, + "attn_drop_rate": 0.0, + "drop_path_rate": 0.0, + "init_values": 0.1, + "max_time_patches": 16, + "spatial_embedding": "mapped_positions", + "provider": "official", + "position_vocabulary": [ + "FP1", + "FPZ", + "FP2", + "AF9", + "AF7", + "AF5", + "AF3", + "AF1", + "AFZ", + "AF2", + "AF4", + "AF6", + "AF8", + "AF10", + "F9", + "F7", + "F5", + "F3", + "F1", + "FZ", + "F2", + "F4", + "F6", + "F8", + "F10", + "FT9", + "FT7", + "FC5", + "FC3", + "FC1", + "FCZ", + "FC2", + "FC4", + "FC6", + "FT8", + "FT10", + "T9", + "T7", + "C5", + "C3", + "C1", + "CZ", + "C2", + "C4", + "C6", + "T8", + "T10", + "TP9", + "TP7", + "CP5", + "CP3", + "CP1", + "CPZ", + "CP2", + "CP4", + "CP6", + "TP8", + "TP10", + "P9", + "P7", + "P5", + "P3", + "P1", + "PZ", + "P2", + "P4", + "P6", + "P8", + "P10", + "PO9", + "PO7", + "PO5", + "PO3", + "PO1", + "POZ", + "PO2", + "PO4", + "PO6", + "PO8", + "PO10", + "O1", + "OZ", + "O2", + "O9", + "CB1", + "CB2", + "IZ", + "O10", + "T3", + "T5", + "T4", + "T6", + "M1", + "M2", + "A1", + "A2", + "CFC1", + "CFC2", + "CFC3", + "CFC4", + "CFC5", + "CFC6", + "CFC7", + "CFC8", + "CCP1", + "CCP2", + "CCP3", + "CCP4", + "CCP5", + "CCP6", + "CCP7", + "CCP8", + "T1", + "T2", + "FTT9h", + "TTP7h", + "TPP9h", + "FTT10h", + "TPP8h", + "TPP10h", + "FP1-F7", + "F7-T7", + "T7-P7", + "P7-O1", + "FP2-F8", + "F8-T8", + "T8-P8", + "P8-O2", + "FP1-F3", + "F3-C3", + "C3-P3", + "P3-O1", + "FP2-F4", + "F4-C4", + "C4-P4", + "P4-O2", + "A2-A1" + ] + }, + "source_task_spec": { + "seed": 42, + "mask_ratio": 0.5, + "masking": "sample_keyed_bernoulli_nonempty", + "predictor_hidden_dim": 400, + "teacher": { + "ema_start": 0.996, + "ema_end": 1.0, + "anneal_updates": 500 + }, + "encoder_name": "labram", + "encoder": { + "sample_rate": 200, + "patch_size": 200, + "input_scale": 1.0, + "tail_policy": "error", + "embed_dim": 200, + "out_chans": 8, + "depth": 12, + "num_heads": 10, + "mlp_ratio": 4.0, + "qkv_bias": false, + "norm_eps": 1e-06, + "drop_rate": 0.0, + "attn_drop_rate": 0.0, + "drop_path_rate": 0.0, + "init_values": 0.1, + "max_time_patches": 16, + "spatial_embedding": "mapped_positions", + "provider": "official", + "position_vocabulary": [ + "FP1", + "FPZ", + "FP2", + "AF9", + "AF7", + "AF5", + "AF3", + "AF1", + "AFZ", + "AF2", + "AF4", + "AF6", + "AF8", + "AF10", + "F9", + "F7", + "F5", + "F3", + "F1", + "FZ", + "F2", + "F4", + "F6", + "F8", + "F10", + "FT9", + "FT7", + "FC5", + "FC3", + "FC1", + "FCZ", + "FC2", + "FC4", + "FC6", + "FT8", + "FT10", + "T9", + "T7", + "C5", + "C3", + "C1", + "CZ", + "C2", + "C4", + "C6", + "T8", + "T10", + "TP9", + "TP7", + "CP5", + "CP3", + "CP1", + "CPZ", + "CP2", + "CP4", + "CP6", + "TP8", + "TP10", + "P9", + "P7", + "P5", + "P3", + "P1", + "PZ", + "P2", + "P4", + "P6", + "P8", + "P10", + "PO9", + "PO7", + "PO5", + "PO3", + "PO1", + "POZ", + "PO2", + "PO4", + "PO6", + "PO8", + "PO10", + "O1", + "OZ", + "O2", + "O9", + "CB1", + "CB2", + "IZ", + "O10", + "T3", + "T5", + "T4", + "T6", + "M1", + "M2", + "A1", + "A2", + "CFC1", + "CFC2", + "CFC3", + "CFC4", + "CFC5", + "CFC6", + "CFC7", + "CFC8", + "CCP1", + "CCP2", + "CCP3", + "CCP4", + "CCP5", + "CCP6", + "CCP7", + "CCP8", + "T1", + "T2", + "FTT9h", + "TTP7h", + "TPP9h", + "FTT10h", + "TPP8h", + "TPP10h", + "FP1-F7", + "F7-T7", + "T7-P7", + "P7-O1", + "FP2-F8", + "F8-T8", + "T8-P8", + "P8-O2", + "FP1-F3", + "F3-C3", + "C3-P3", + "P3-O1", + "FP2-F4", + "F4-C4", + "C4-P4", + "P4-O2", + "A2-A1" + ] + } + }, + "objective": "masked_latent_jepa", + "teacher_updates": 500, + "auxiliary_query_included": false, + "sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a" +} diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/model.safetensors b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f3952fb720f61560a15cd335d712e6915a1727a9 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_jepa/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a +size 23308768 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/config.json b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/config.json new file mode 100644 index 0000000000000000000000000000000000000000..d1c0682724a5616e25f66d05735991611d37a4ca --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/config.json @@ -0,0 +1,330 @@ +{ + "encoder_name": "labram", + "encoder": { + "sample_rate": 200, + "patch_size": 200, + "input_scale": 1.0, + "tail_policy": "error", + "embed_dim": 200, + "out_chans": 8, + "depth": 12, + "num_heads": 10, + "mlp_ratio": 4.0, + "qkv_bias": false, + "norm_eps": 1e-06, + "drop_rate": 0.0, + "attn_drop_rate": 0.0, + "drop_path_rate": 0.0, + "init_values": 0.1, + "max_time_patches": 16, + "spatial_embedding": "mapped_positions", + "provider": "official", + "position_vocabulary": [ + "FP1", + "FPZ", + "FP2", + "AF9", + "AF7", + "AF5", + "AF3", + "AF1", + "AFZ", + "AF2", + "AF4", + "AF6", + "AF8", + "AF10", + "F9", + "F7", + "F5", + "F3", + "F1", + "FZ", + "F2", + "F4", + "F6", + "F8", + "F10", + "FT9", + "FT7", + "FC5", + "FC3", + "FC1", + "FCZ", + "FC2", + "FC4", + "FC6", + "FT8", + "FT10", + "T9", + "T7", + "C5", + "C3", + "C1", + "CZ", + "C2", + "C4", + "C6", + "T8", + "T10", + "TP9", + "TP7", + "CP5", + "CP3", + "CP1", + "CPZ", + "CP2", + "CP4", + "CP6", + "TP8", + "TP10", + "P9", + "P7", + "P5", + "P3", + "P1", + "PZ", + "P2", + "P4", + "P6", + "P8", + "P10", + "PO9", + "PO7", + "PO5", + "PO3", + "PO1", + "POZ", + "PO2", + "PO4", + "PO6", + "PO8", + "PO10", + "O1", + "OZ", + "O2", + "O9", + "CB1", + "CB2", + "IZ", + "O10", + "T3", + "T5", + "T4", + "T6", + "M1", + "M2", + "A1", + "A2", + "CFC1", + "CFC2", + "CFC3", + "CFC4", + "CFC5", + "CFC6", + "CFC7", + "CFC8", + "CCP1", + "CCP2", + "CCP3", + "CCP4", + "CCP5", + "CCP6", + "CCP7", + "CCP8", + "T1", + "T2", + "FTT9h", + "TTP7h", + "TPP9h", + "FTT10h", + "TPP8h", + "TPP10h", + "FP1-F7", + "F7-T7", + "T7-P7", + "P7-O1", + "FP2-F8", + "F8-T8", + "T8-P8", + "P8-O2", + "FP1-F3", + "F3-C3", + "C3-P3", + "P3-O1", + "FP2-F4", + "F4-C4", + "C4-P4", + "P4-O2", + "A2-A1" + ] + }, + "source_task_spec": { + "seed": 42, + "mask_ratio": 0.5, + "masking": "sample_keyed_bernoulli_nonempty", + "head_initialization": "truncated_normal_0.02", + "encoder_name": "labram", + "encoder": { + "sample_rate": 200, + "patch_size": 200, + "input_scale": 1.0, + "tail_policy": "error", + "embed_dim": 200, + "out_chans": 8, + "depth": 12, + "num_heads": 10, + "mlp_ratio": 4.0, + "qkv_bias": false, + "norm_eps": 1e-06, + "drop_rate": 0.0, + "attn_drop_rate": 0.0, + "drop_path_rate": 0.0, + "init_values": 0.1, + "max_time_patches": 16, + "spatial_embedding": "mapped_positions", + "provider": "official", + "position_vocabulary": [ + "FP1", + "FPZ", + "FP2", + "AF9", + "AF7", + "AF5", + "AF3", + "AF1", + "AFZ", + "AF2", + "AF4", + "AF6", + "AF8", + "AF10", + "F9", + "F7", + "F5", + "F3", + "F1", + "FZ", + "F2", + "F4", + "F6", + "F8", + "F10", + "FT9", + "FT7", + "FC5", + "FC3", + "FC1", + "FCZ", + "FC2", + "FC4", + "FC6", + "FT8", + "FT10", + "T9", + "T7", + "C5", + "C3", + "C1", + "CZ", + "C2", + "C4", + "C6", + "T8", + "T10", + "TP9", + "TP7", + "CP5", + "CP3", + "CP1", + "CPZ", + "CP2", + "CP4", + "CP6", + "TP8", + "TP10", + "P9", + "P7", + "P5", + "P3", + "P1", + "PZ", + "P2", + "P4", + "P6", + "P8", + "P10", + "PO9", + "PO7", + "PO5", + "PO3", + "PO1", + "POZ", + "PO2", + "PO4", + "PO6", + "PO8", + "PO10", + "O1", + "OZ", + "O2", + "O9", + "CB1", + "CB2", + "IZ", + "O10", + "T3", + "T5", + "T4", + "T6", + "M1", + "M2", + "A1", + "A2", + "CFC1", + "CFC2", + "CFC3", + "CFC4", + "CFC5", + "CFC6", + "CFC7", + "CFC8", + "CCP1", + "CCP2", + "CCP3", + "CCP4", + "CCP5", + "CCP6", + "CCP7", + "CCP8", + "T1", + "T2", + "FTT9h", + "TTP7h", + "TPP9h", + "FTT10h", + "TPP8h", + "TPP10h", + "FP1-F7", + "F7-T7", + "T7-P7", + "P7-O1", + "FP2-F8", + "F8-T8", + "T8-P8", + "P8-O2", + "FP1-F3", + "F3-C3", + "C3-P3", + "P3-O1", + "FP2-F4", + "F4-C4", + "C4-P4", + "P4-O2", + "A2-A1" + ] + } + }, + "auxiliary_query_included": false, + "sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1" +} diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/model.safetensors b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/model.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..40316f8a81f7d51c420b086757226b5c979746f6 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/checkpoints/continuous_mae/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1 +size 23308768 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_preset.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_preset.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d1f3e735b8000834f9b0fea0cae5f21b7072288a --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_preset.yaml @@ -0,0 +1,19 @@ +schema: neurofoundry-execution-preset-v1 +runner: local_view +recipe: /home/zym/exp002-discrete-vs-continuous/configs/continuous_jepa_recipe.yaml +view: /mnt/d/zym/dataset/neurofoundry/processed/tueg/cbramod30s-lmdb-v1 +runs_root: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa_root +lmdb_parallel_copy: true +read_workers: 8 +ram_gib: 6 +cache_roots: [] +use_recipe_scheduler: true +export_bundle: true +tracking: + mode: disabled +subwindow_seconds: 10 +channel_case: upper +batch_size: 128 +gradient_accumulation_steps: 4 +steps: 500 +validation_steps: 100 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_recipe.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c3a658d04b852b3236b548964b7fb08b28782ab1 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_jepa_recipe.yaml @@ -0,0 +1,262 @@ +name: labram-base-continuous-jepa +series: exp002-discrete-vs-continuous +seed: 42 +results_root: results +data: + index: derived/reve-public-v1.sqlite + min_channels: 7 + clip: 15.0 + cache_root: .cache/corpus-cache + cache_bytes: 137438953472 + reserve_bytes: 34359738368 + local_source: null + bucket: example-eeg-corpus + prefix: datasets/reve-dataset/f07140e5f6e67b4cda8e8b383d2179cdadc7b272 + quality_policy: + mean_error_std_units: 0.02 + std_relative_error: 0.02 + position_norm_max_meters: 2.0 + chunk_bytes: 8388608 + channel_scope_min: 1 + validation_raw_access: range + adapter: reve_public + sampling_policy: shape_mixed + channel_mapping: + uri: derived/reve-channel-map-v1.json + sha256: 2eb703daeaf76af8c5033840181d6ab607057688fff0f4e9bfa8d82fc64e6372 +task: + name: masked_latent_jepa + parameters: + seed: 42 + mask_ratio: 0.5 + masking: sample_keyed_bernoulli_nonempty + predictor_hidden_dim: 400 + teacher: + ema_start: 0.996 + ema_end: 1.0 + anneal_updates: 500 + encoder_name: labram + encoder: + sample_rate: 200 + patch_size: 200 + input_scale: 1.0 + tail_policy: error + embed_dim: 200 + out_chans: 8 + depth: 12 + num_heads: 10 + mlp_ratio: 4.0 + qkv_bias: false + norm_eps: 1.0e-06 + drop_rate: 0.0 + attn_drop_rate: 0.0 + drop_path_rate: 0.0 + init_values: 0.1 + max_time_patches: 16 + spatial_embedding: mapped_positions + provider: official + position_vocabulary: + - FP1 + - FPZ + - FP2 + - AF9 + - AF7 + - AF5 + - AF3 + - AF1 + - AFZ + - AF2 + - AF4 + - AF6 + - AF8 + - AF10 + - F9 + - F7 + - F5 + - F3 + - F1 + - FZ + - F2 + - F4 + - F6 + - F8 + - F10 + - FT9 + - FT7 + - FC5 + - FC3 + - FC1 + - FCZ + - FC2 + - FC4 + - FC6 + - FT8 + - FT10 + - T9 + - T7 + - C5 + - C3 + - C1 + - CZ + - C2 + - C4 + - C6 + - T8 + - T10 + - TP9 + - TP7 + - CP5 + - CP3 + - CP1 + - CPZ + - CP2 + - CP4 + - CP6 + - TP8 + - TP10 + - P9 + - P7 + - P5 + - P3 + - P1 + - PZ + - P2 + - P4 + - P6 + - P8 + - P10 + - PO9 + - PO7 + - PO5 + - PO3 + - PO1 + - POZ + - PO2 + - PO4 + - PO6 + - PO8 + - PO10 + - O1 + - OZ + - O2 + - O9 + - CB1 + - CB2 + - IZ + - O10 + - T3 + - T5 + - T4 + - T6 + - M1 + - M2 + - A1 + - A2 + - CFC1 + - CFC2 + - CFC3 + - CFC4 + - CFC5 + - CFC6 + - CFC7 + - CFC8 + - CCP1 + - CCP2 + - CCP3 + - CCP4 + - CCP5 + - CCP6 + - CCP7 + - CCP8 + - T1 + - T2 + - FTT9h + - TTP7h + - TPP9h + - FTT10h + - TPP8h + - TPP10h + - FP1-F7 + - F7-T7 + - T7-P7 + - P7-O1 + - FP2-F8 + - F8-T8 + - T8-P8 + - P8-O2 + - FP1-F3 + - F3-C3 + - C3-P3 + - P3-O1 + - FP2-F4 + - F4-C4 + - C4-P4 + - P4-O2 + - A2-A1 +initialization: + type: random + path: null +optimizer: + name: AdamW + parameters: + lr: 0.0005 + weight_decay: 0.05 + betas: + - 0.9 + - 0.98 + eps: 1.0e-08 +training: + loss_normalization: global_target_mean + validation_loss: primary + batch_size_per_gpu: 8 + gradient_accumulation_steps: 1 + token_budget_per_gpu: 4096 + precision: bfloat16 + max_steps: 1000 + max_seconds: 3600 + scheduler: + total_steps: 1000 + warmup_steps: 100 + cooldown_steps: 100 + start_lr: 1.0e-06 + peak_lr: 0.0005 + end_lr: 1.0e-05 + gradient_clip: 3.0 + num_workers: 2 + validate_every: 100 + validation_per_group: 2 + selection_metric: primary + checkpoint_every: 100 + checkpoint_seconds: 600 + keep_last: 2 + log_every: 10 +runtime: + device: cuda + world_size: 1 + torch_threads: 8 + num_machines: 1 + gpus_per_machine: 1 + expected_gpu: H200 + distributed_timeout_seconds: 180 + launcher: accelerate + job_deadline_seconds: 5400 + efa_per_machine: 0 +backend: + name: huggingface_trainer + strategy: ddp + transformers_version: 5.19.0 + accelerate_version: 1.15.0 + checkpoint_format: hf-trainer-v1 +protocol: + name: labram-masked-token-prediction-v1 + profile: adapted_reference + reference: + kind: official_public_code + repository: https://github.com/935963004/LaBraM + revision: c431221e6cfd23dbfa9950e0180682fb322b0548 + changes: + - Consumes frozen checksum-verified tokenizer_bundle or official VQNSP checkpoint + - Exports downstream-ready student encoder_bundle excluding pretraining mask_token + and lm_head +tracking: + mode: disabled diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_preset.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_preset.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d4b8191debc99984c009ee5d522a3be357823ee7 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_preset.yaml @@ -0,0 +1,19 @@ +schema: neurofoundry-execution-preset-v1 +runner: local_view +recipe: /home/zym/exp002-discrete-vs-continuous/configs/continuous_mae_recipe.yaml +view: /mnt/d/zym/dataset/neurofoundry/processed/tueg/cbramod30s-lmdb-v1 +runs_root: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae_root +lmdb_parallel_copy: true +read_workers: 8 +ram_gib: 6 +cache_roots: [] +use_recipe_scheduler: true +export_bundle: true +tracking: + mode: disabled +subwindow_seconds: 10 +channel_case: upper +batch_size: 128 +gradient_accumulation_steps: 4 +steps: 500 +validation_steps: 100 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_recipe.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..05dce4b0f3e6291932d87a243fdd1b612db9c420 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/continuous_mae_recipe.yaml @@ -0,0 +1,258 @@ +name: labram-base-continuous-mae +series: exp002-discrete-vs-continuous +seed: 42 +results_root: results +data: + index: derived/reve-public-v1.sqlite + min_channels: 7 + clip: 15.0 + cache_root: .cache/corpus-cache + cache_bytes: 137438953472 + reserve_bytes: 34359738368 + local_source: null + bucket: example-eeg-corpus + prefix: datasets/reve-dataset/f07140e5f6e67b4cda8e8b383d2179cdadc7b272 + quality_policy: + mean_error_std_units: 0.02 + std_relative_error: 0.02 + position_norm_max_meters: 2.0 + chunk_bytes: 8388608 + channel_scope_min: 1 + validation_raw_access: range + adapter: reve_public + sampling_policy: shape_mixed + channel_mapping: + uri: derived/reve-channel-map-v1.json + sha256: 2eb703daeaf76af8c5033840181d6ab607057688fff0f4e9bfa8d82fc64e6372 +task: + name: masked_waveform + parameters: + seed: 42 + mask_ratio: 0.5 + masking: sample_keyed_bernoulli_nonempty + head_initialization: truncated_normal_0.02 + encoder_name: labram + encoder: + sample_rate: 200 + patch_size: 200 + input_scale: 1.0 + tail_policy: error + embed_dim: 200 + out_chans: 8 + depth: 12 + num_heads: 10 + mlp_ratio: 4.0 + qkv_bias: false + norm_eps: 1.0e-06 + drop_rate: 0.0 + attn_drop_rate: 0.0 + drop_path_rate: 0.0 + init_values: 0.1 + max_time_patches: 16 + spatial_embedding: mapped_positions + provider: official + position_vocabulary: + - FP1 + - FPZ + - FP2 + - AF9 + - AF7 + - AF5 + - AF3 + - AF1 + - AFZ + - AF2 + - AF4 + - AF6 + - AF8 + - AF10 + - F9 + - F7 + - F5 + - F3 + - F1 + - FZ + - F2 + - F4 + - F6 + - F8 + - F10 + - FT9 + - FT7 + - FC5 + - FC3 + - FC1 + - FCZ + - FC2 + - FC4 + - FC6 + - FT8 + - FT10 + - T9 + - T7 + - C5 + - C3 + - C1 + - CZ + - C2 + - C4 + - C6 + - T8 + - T10 + - TP9 + - TP7 + - CP5 + - CP3 + - CP1 + - CPZ + - CP2 + - CP4 + - CP6 + - TP8 + - TP10 + - P9 + - P7 + - P5 + - P3 + - P1 + - PZ + - P2 + - P4 + - P6 + - P8 + - P10 + - PO9 + - PO7 + - PO5 + - PO3 + - PO1 + - POZ + - PO2 + - PO4 + - PO6 + - PO8 + - PO10 + - O1 + - OZ + - O2 + - O9 + - CB1 + - CB2 + - IZ + - O10 + - T3 + - T5 + - T4 + - T6 + - M1 + - M2 + - A1 + - A2 + - CFC1 + - CFC2 + - CFC3 + - CFC4 + - CFC5 + - CFC6 + - CFC7 + - CFC8 + - CCP1 + - CCP2 + - CCP3 + - CCP4 + - CCP5 + - CCP6 + - CCP7 + - CCP8 + - T1 + - T2 + - FTT9h + - TTP7h + - TPP9h + - FTT10h + - TPP8h + - TPP10h + - FP1-F7 + - F7-T7 + - T7-P7 + - P7-O1 + - FP2-F8 + - F8-T8 + - T8-P8 + - P8-O2 + - FP1-F3 + - F3-C3 + - C3-P3 + - P3-O1 + - FP2-F4 + - F4-C4 + - C4-P4 + - P4-O2 + - A2-A1 +initialization: + type: random + path: null +optimizer: + name: AdamW + parameters: + lr: 0.0005 + weight_decay: 0.05 + betas: + - 0.9 + - 0.98 + eps: 1.0e-08 +training: + loss_normalization: global_target_mean + validation_loss: primary + batch_size_per_gpu: 8 + gradient_accumulation_steps: 1 + token_budget_per_gpu: 4096 + precision: bfloat16 + max_steps: 1000 + max_seconds: 3600 + scheduler: + total_steps: 1000 + warmup_steps: 100 + cooldown_steps: 100 + start_lr: 1.0e-06 + peak_lr: 0.0005 + end_lr: 1.0e-05 + gradient_clip: 3.0 + num_workers: 2 + validate_every: 100 + validation_per_group: 2 + selection_metric: primary + checkpoint_every: 100 + checkpoint_seconds: 600 + keep_last: 2 + log_every: 10 +runtime: + device: cuda + world_size: 1 + torch_threads: 8 + num_machines: 1 + gpus_per_machine: 1 + expected_gpu: H200 + distributed_timeout_seconds: 180 + launcher: accelerate + job_deadline_seconds: 5400 + efa_per_machine: 0 +backend: + name: huggingface_trainer + strategy: ddp + transformers_version: 5.19.0 + accelerate_version: 1.15.0 + checkpoint_format: hf-trainer-v1 +protocol: + name: labram-masked-token-prediction-v1 + profile: adapted_reference + reference: + kind: official_public_code + repository: https://github.com/935963004/LaBraM + revision: c431221e6cfd23dbfa9950e0180682fb322b0548 + changes: + - Consumes frozen checksum-verified tokenizer_bundle or official VQNSP checkpoint + - Exports downstream-ready student encoder_bundle excluding pretraining mask_token + and lm_head +tracking: + mode: disabled diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bcic2020-3.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bcic2020-3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8340e357ef38f1f81ba789d301bb1b1ccccd35d0 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bcic2020-3.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bcic2020-3 +version: cbramod-competition-nemar-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/bcic2020-3 +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bciciv2a.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bciciv2a.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b914eda28d1673515f6478e826e79c6b5482c68 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_bciciv2a.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bciciv2a +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/bciciv2a +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_eegmat.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_eegmat.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2ba3670b00de2b5ea7f198932b6881932a55b31d --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_eegmat.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: eegmat +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/eegmat +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_faced.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_faced.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f1274ffeb90ee92e74892af3a0d040b7e57158ce --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_faced.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: faced +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/faced +precision: bf16 +ram_cache_gib: 6.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_mumtaz.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_mumtaz.yaml new file mode 100644 index 0000000000000000000000000000000000000000..971f2f6d5a1e49e21477b61e5e464f7d6e473a18 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_mumtaz.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: mumtaz +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/mumtaz +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_physionet-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_physionet-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..537f22ef9e939c96e4c92f0b1d56d36eee004764 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_physionet-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: physionet-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/physionet-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_shu-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_shu-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f05bf1299c2347929ce545654fd007b0ba6a63c4 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_shu-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: shu-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/shu-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_tuev.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_tuev.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e6c18e7bbb3c7e4a4a7c76ff11d4124840a4c05 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_jepa_tuev.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: tuev +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_jepa/tuev +precision: bf16 +ram_cache_gib: 9.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bcic2020-3.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bcic2020-3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c6c037313faa218d3daf69be73bb99d31ea72999 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bcic2020-3.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bcic2020-3 +version: cbramod-competition-nemar-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/bcic2020-3 +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bciciv2a.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bciciv2a.yaml new file mode 100644 index 0000000000000000000000000000000000000000..661d8ddecbec23cde9c2423585f4a9b848b15968 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_bciciv2a.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bciciv2a +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/bciciv2a +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_eegmat.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_eegmat.yaml new file mode 100644 index 0000000000000000000000000000000000000000..59836691c2d3fe3d02f2cdd005830302231ef610 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_eegmat.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: eegmat +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/eegmat +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_faced.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_faced.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8faa5ab15f0ec2996a43c718a2c6cc3f48c33a6b --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_faced.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: faced +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/faced +precision: bf16 +ram_cache_gib: 6.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_mumtaz.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_mumtaz.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bea7bf084c71770d8337ff1a24e75a6427f42299 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_mumtaz.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: mumtaz +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/mumtaz +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_physionet-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_physionet-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a962f3db3638008b1cdf4a91138ae513dcd8d05c --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_physionet-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: physionet-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/physionet-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_shu-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_shu-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dbbd4b0c0ee2755bb10e16139fe6857592fe8e2d --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_shu-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: shu-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/shu-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_tuev.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_tuev.yaml new file mode 100644 index 0000000000000000000000000000000000000000..09cd52906a12ee6f23d5b0e0b070ed69beb1f62b --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_finetune_continuous_mae_tuev.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: tuev +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/finetune/continuous_mae/tuev +precision: bf16 +ram_cache_gib: 9.0 +tracking: + mode: disabled +freeze_backbone: false +epochs: 50 +backbone_lr: 0.0001 +head_lr: 0.0005 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bcic2020-3.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bcic2020-3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..773b581de57a1a55a26063695e098f5ba7be2504 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bcic2020-3.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bcic2020-3 +version: cbramod-competition-nemar-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/bcic2020-3 +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bciciv2a.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bciciv2a.yaml new file mode 100644 index 0000000000000000000000000000000000000000..80bb47980efcc9454ced45c3809fc8831ab8b237 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_bciciv2a.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bciciv2a +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/bciciv2a +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_eegmat.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_eegmat.yaml new file mode 100644 index 0000000000000000000000000000000000000000..38f8c2f76320cb514b8db3a9c1038df2b553910d --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_eegmat.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: eegmat +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/eegmat +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_faced.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_faced.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9aee7b1c512490ef0828e187b444c8d8f6a857ed --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_faced.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: faced +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/faced +precision: bf16 +ram_cache_gib: 6.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_mumtaz.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_mumtaz.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c186fdbff3566a66f34df038f0b6bcca56c93c10 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_mumtaz.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: mumtaz +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/mumtaz +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_physionet-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_physionet-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..147a65c63418c6f1baefafdc2057ae5fd31ccaed --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_physionet-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: physionet-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/physionet-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_shu-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_shu-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..30eec091e14c0ea13c5ec0bedb2f071c7010d36f --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_shu-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: shu-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/shu-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_tuev.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_tuev.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eef8319b0d989ceb04330b2a08c9807b07f4f2dc --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_jepa_tuev.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: tuev +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_jepa/tuev +precision: bf16 +ram_cache_gib: 9.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bcic2020-3.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bcic2020-3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..47ff81f0b17110221abdd8b530f3e5c09e2c8f6c --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bcic2020-3.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bcic2020-3 +version: cbramod-competition-nemar-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/bcic2020-3 +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bciciv2a.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bciciv2a.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fbe3c142a023451fbec267e569a41b9d564070dc --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_bciciv2a.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bciciv2a +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/bciciv2a +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_eegmat.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_eegmat.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e1ee9c75eafe9a255a60701d8f845de850532714 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_eegmat.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: eegmat +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/eegmat +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_faced.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_faced.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e533ec0c922304cf229de01209ae3d0b385df02e --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_faced.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: faced +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/faced +precision: bf16 +ram_cache_gib: 6.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_mumtaz.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_mumtaz.yaml new file mode 100644 index 0000000000000000000000000000000000000000..42891c086b629415545adca013d200998c8b4930 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_mumtaz.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: mumtaz +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/mumtaz +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_physionet-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_physionet-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9ba320735777a892d30fba07cb283274625b9cd9 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_physionet-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: physionet-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/physionet-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_shu-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_shu-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1af85f9d7f5edc356435902be9933b0d488e680a --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_shu-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: shu-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/shu-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_tuev.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_tuev.yaml new file mode 100644 index 0000000000000000000000000000000000000000..304a668400c310637d00999bd6b47d06a6d4c146 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_continuous_mae_tuev.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: tuev +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/continuous_mae/tuev +precision: bf16 +ram_cache_gib: 9.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bcic2020-3.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bcic2020-3.yaml new file mode 100644 index 0000000000000000000000000000000000000000..93ec33c3477a678cfaa86c5a7f28aae8b8ce803f --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bcic2020-3.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bcic2020-3 +version: cbramod-competition-nemar-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/bcic2020-3 +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bciciv2a.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bciciv2a.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d6bf2d140492935c1328135ea73fbb68fd45a8e0 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_bciciv2a.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: bciciv2a +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/bciciv2a +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_eegmat.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_eegmat.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3b705d29697fabd1c77233cb8ee7c431ed9945ca --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_eegmat.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: eegmat +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/eegmat +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_faced.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_faced.yaml new file mode 100644 index 0000000000000000000000000000000000000000..059eb53d914fb48bdc50de29e619c1e4d3bc52d5 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_faced.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: faced +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/faced +precision: bf16 +ram_cache_gib: 6.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_mumtaz.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_mumtaz.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ecbdd50ca17d41b667010ff17b49201d3c9e846 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_mumtaz.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: mumtaz +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/mumtaz +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_physionet-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_physionet-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3dbbd65f4d937af560ac050f88f84e9b7f420bad --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_physionet-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: physionet-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/physionet-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_shu-mi.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_shu-mi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b873c341b8c8ff454a1f4b69b688da65bce4a59d --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_shu-mi.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: shu-mi +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/shu-mi +precision: bf16 +ram_cache_gib: 2.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_tuev.yaml b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_tuev.yaml new file mode 100644 index 0000000000000000000000000000000000000000..25eaa35743ef550573699237f7c88553b245dd4c --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/configs/eval_linear_probe_discrete_vq_tuev.yaml @@ -0,0 +1,15 @@ +backend: encoder_bundle +seed: 3407 +dataset: tuev +version: cbramod-official-v1 +root: /mnt/d/zym/dataset/neurofoundry +bundle: /home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle +output: /home/zym/exp002-discrete-vs-continuous/runs/downstream/linear_probe/discrete_vq/tuev +precision: bf16 +ram_cache_gib: 9.0 +tracking: + mode: disabled +freeze_backbone: true +epochs: 30 +head_lr: 0.001 +backbone_lr: 0.0 diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/meta.json b/experiments/2026-11-24_exp002_discrete_vs_continuous/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..89188c29bfe454ce40d5b7e467f3120775c71662 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/meta.json @@ -0,0 +1,64 @@ +{ + "schema": "neurofoundry-experiment-record-v1", + "exp_id": "2026-11-24_exp002_discrete_vs_continuous", + "date": "2026-11-24", + "title": "Discretization (VQ-MLM) vs Continuous MAE vs Continuous JEPA on Identical LaBraM ViT", + "status": "completed", + "hypothesis": "Controlled ablation isolating pretraining objective (discrete VQ-MLM vs continuous waveform MAE vs continuous EMA-teacher JEPA) on identical LaBraM ViT backbone and TUEG 48.7M-patch budget.", + "repo": { + "name": "NeuroFoundry", + "branch": "feat/exp002-discrete-vs-continuous", + "commit": "57a3422" + }, + "hardware": { + "gpu": "NVIDIA RTX 5090 32GB", + "precision": "bf16" + }, + "data": { + "pretrain_corpus": "TUEG (cbramod30s-lmdb-v1)", + "budget_patches": 48700000, + "downstream_suite": [ + "eegmat", + "bciciv2a", + "mumtaz", + "bcic2020-3", + "shu-mi", + "physionet-mi", + "faced", + "tuev" + ] + }, + "variants": [ + "discrete_vq", + "continuous_mae", + "continuous_jepa" + ], + "headline_metrics": { + "linear_probe": { + "discrete_vq": 0.4162, + "continuous_mae": 0.3854, + "continuous_jepa": 0.471 + }, + "finetune": { + "discrete_vq": 0.5335, + "continuous_mae": 0.501, + "continuous_jepa": 0.5098 + } + }, + "checkpoints": [ + "checkpoints/continuous_mae/model.safetensors", + "checkpoints/continuous_jepa/model.safetensors" + ], + "plots": [ + "plots/exp002_discrete_vs_continuous.png" + ], + "tags": [ + "ablation", + "discretization", + "jepa", + "mae", + "linear-probe", + "eeg", + "tueg" + ] +} diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/metrics/summary_report.json b/experiments/2026-11-24_exp002_discrete_vs_continuous/metrics/summary_report.json new file mode 100644 index 0000000000000000000000000000000000000000..95b432628c88d7a3e4b12c6a115daf1af88c134c --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/metrics/summary_report.json @@ -0,0 +1,1243 @@ +{ + "pretraining": { + "discrete_vq": { + "training_policy": { + "optimizer": { + "name": "AdamW", + "parameters": { + "lr": 0.0005, + "betas": [ + 0.9, + 0.98 + ], + "eps": 1e-08, + "weight_decay": 0.05, + "amsgrad": false, + "maximize": false, + "foreach": null, + "capturable": false, + "differentiable": false, + "fused": true, + "decoupled_weight_decay": true + } + }, + "gradient_clip": 3.0, + "gradient_accumulation_steps": 4, + "scheduler": { + "total_steps": 500, + "warmup_steps": 50, + "cooldown_steps": 50, + "start_lr": 1e-06, + "peak_lr": 0.0005, + "end_lr": 1e-05 + } + }, + "manifest_sha256": "f57168cfd83cd0a0f0a1cf8e822cee44c4eca0dbe50a296fcc5e8e05b0e99981", + "seed": 42, + "task": "masked_token_prediction", + "batch": 128, + "recipe_sha256": "10f2814f5f5f5e7c7ce3f0bf9863e4cc3c2245739c9ffcefe462ef04f2fff61d", + "view": "/mnt/d/zym/dataset/neurofoundry/processed/tueg/cbramod30s-lmdb-v1", + "read_workers": 8, + "ram_gib": 6.0, + "cache_roots": [], + "window_seconds": 10, + "subwindows_per_view_window": 3, + "channels": [ + "FP1", + "FP2", + "F3", + "F4", + "C3", + "C4", + "P3", + "P4", + "O1", + "O2", + "F7", + "F8", + "T3", + "T4", + "T5", + "T6", + "FZ", + "CZ", + "PZ" + ], + "lmdb_parallel_copy": true, + "storage_format": "lmdb-npy-records-v1", + "pack": null, + "train": { + "windows": 256000, + "steps": 2000, + "seconds": 341.4725570839364, + "rate": 749.6942131635877, + "mse": 8.489280381694593, + "objective_mean": 8.489280740022659, + "losses": { + "primary": 8.489280381694593 + }, + "read_queue": { + "prefill_ready_bytes": 11400000, + "peak_ready_bytes": 6442368000, + "refill_cycles": 98, + "in_flight_bytes": 0, + "ready_bytes": 0 + }, + "timing": { + "offset": 0, + "warmup_steps": 5, + "windows": 255360, + "seconds": 336.0067265990656, + "rate": 759.9847853781333, + "input_wait_fraction": 0.005329433659079324 + } + }, + "validation": { + "windows": 12800, + "steps": 100, + "seconds": 8.877585636917502, + "rate": 1441.8334582739603, + "mse": 8.48980804764597, + "objective_mean": 8.489808397293091, + "losses": { + "primary": 8.48980804764597 + }, + "read_queue": { + "prefill_ready_bytes": 26448000, + "peak_ready_bytes": 584136000, + "refill_cycles": 0, + "in_flight_bytes": 0, + "ready_bytes": 0 + }, + "codebook_usage": { + "num_codebooks": 1, + "vocab_size": 8192, + "used_codes": 0, + "unused_codes": 8192, + "utilization": 0.0, + "perplexity": 1.0, + "total_tokens": 0 + } + }, + "exported_bundle": { + "path": "/home/zym/baseline-benchmark-runs/runs/labram-stage2-mem/bundle", + "verification": { + "features_match": true, + "max_absolute_difference": 0.0, + "query_preserved": false, + "exported_role": "student" + } + } + }, + "continuous_mae": { + "training_policy": { + "optimizer": { + "name": "AdamW", + "parameters": { + "lr": 0.0005, + "betas": [ + 0.9, + 0.98 + ], + "eps": 1e-08, + "weight_decay": 0.05, + "amsgrad": false, + "maximize": false, + "foreach": null, + "capturable": false, + "differentiable": false, + "fused": true, + "decoupled_weight_decay": true + } + }, + "gradient_clip": 3.0, + "gradient_accumulation_steps": 4, + "scheduler": { + "total_steps": 500, + "warmup_steps": 50, + "cooldown_steps": 50, + "start_lr": 1e-06, + "peak_lr": 0.0005, + "end_lr": 1e-05 + } + }, + "manifest_sha256": "f57168cfd83cd0a0f0a1cf8e822cee44c4eca0dbe50a296fcc5e8e05b0e99981", + "seed": 42, + "task": "masked_waveform", + "batch": 128, + "recipe_sha256": "550b126323438d8554cb5f127477a623ef3e2c84f8f3bacb104baef9a7c5d669", + "view": "/mnt/d/zym/dataset/neurofoundry/processed/tueg/cbramod30s-lmdb-v1", + "read_workers": 8, + "ram_gib": 6.0, + "cache_roots": [], + "window_seconds": 10, + "subwindows_per_view_window": 3, + "channels": [ + "FP1", + "FP2", + "F3", + "F4", + "C3", + "C4", + "P3", + "P4", + "O1", + "O2", + "F7", + "F8", + "T3", + "T4", + "T5", + "T6", + "FZ", + "CZ", + "PZ" + ], + "lmdb_parallel_copy": true, + "storage_format": "lmdb-npy-records-v1", + "pack": null, + "train": { + "windows": 256000, + "steps": 2000, + "seconds": 163.8948913019849, + "rate": 1561.976691075176, + "mse": 0.013984064696659155, + "objective_mean": 0.013985490376973757, + "losses": { + "primary": 0.013984064696659155 + }, + "read_queue": { + "prefill_ready_bytes": 11400000, + "peak_ready_bytes": 1508448000, + "refill_cycles": 0, + "in_flight_bytes": 0, + "ready_bytes": 0 + }, + "timing": { + "offset": 0, + "warmup_steps": 5, + "windows": 255360, + "seconds": 158.6514252020279, + "rate": 1609.5663790906556, + "input_wait_fraction": 0.06936359716293958 + } + }, + "validation": { + "windows": 12800, + "steps": 100, + "seconds": 6.538314239936881, + "rate": 1957.691161708919, + "mse": 0.014481453660192208, + "objective_mean": 0.014481890059832948, + "losses": { + "primary": 0.014481453660192208 + }, + "read_queue": { + "prefill_ready_bytes": 26448000, + "peak_ready_bytes": 127224000, + "refill_cycles": 0, + "in_flight_bytes": 0, + "ready_bytes": 0 + } + }, + "exported_bundle": { + "path": "/home/zym/exp002-discrete-vs-continuous/runs/continuous_mae/bundle", + "verification": { + "features_match": true, + "max_absolute_difference": 0.0, + "query_preserved": false + } + } + }, + "continuous_jepa": { + "training_policy": { + "optimizer": { + "name": "AdamW", + "parameters": { + "lr": 0.0005, + "betas": [ + 0.9, + 0.98 + ], + "eps": 1e-08, + "weight_decay": 0.05, + "amsgrad": false, + "maximize": false, + "foreach": null, + "capturable": false, + "differentiable": false, + "fused": true, + "decoupled_weight_decay": true + } + }, + "gradient_clip": 3.0, + "gradient_accumulation_steps": 4, + "scheduler": { + "total_steps": 500, + "warmup_steps": 50, + "cooldown_steps": 50, + "start_lr": 1e-06, + "peak_lr": 0.0005, + "end_lr": 1e-05 + } + }, + "manifest_sha256": "f57168cfd83cd0a0f0a1cf8e822cee44c4eca0dbe50a296fcc5e8e05b0e99981", + "seed": 42, + "task": "masked_latent_jepa", + "batch": 128, + "recipe_sha256": "96eb23288c24618dcfbd31fd24491b3c86c57d6fdb32e5849ffc8d1fb0c09b15", + "view": "/mnt/d/zym/dataset/neurofoundry/processed/tueg/cbramod30s-lmdb-v1", + "read_workers": 8, + "ram_gib": 6.0, + "cache_roots": [], + "window_seconds": 10, + "subwindows_per_view_window": 3, + "channels": [ + "FP1", + "FP2", + "F3", + "F4", + "C3", + "C4", + "P3", + "P4", + "O1", + "O2", + "F7", + "F8", + "T3", + "T4", + "T5", + "T6", + "FZ", + "CZ", + "PZ" + ], + "lmdb_parallel_copy": true, + "storage_format": "lmdb-npy-records-v1", + "pack": null, + "train": { + "windows": 256000, + "steps": 2000, + "seconds": 200.3597636569757, + "rate": 1277.70164691491, + "mse": 0.2865369626873453, + "objective_mean": 0.28653912235051393, + "losses": { + "primary": 0.2865369626873453 + }, + "read_queue": { + "prefill_ready_bytes": 11400000, + "peak_ready_bytes": 6404520000, + "refill_cycles": 11, + "in_flight_bytes": 0, + "ready_bytes": 0 + }, + "last_task_update": { + "ema_updated": true, + "teacher_updates": 500, + "ema_decay": 0.999992 + }, + "timing": { + "offset": 0, + "warmup_steps": 5, + "windows": 255360, + "seconds": 197.38915992493276, + "rate": 1293.688063200196, + "input_wait_fraction": 0.011071008431873572 + } + }, + "validation": { + "windows": 12800, + "steps": 100, + "seconds": 6.658332683960907, + "rate": 1922.4031912423966, + "mse": 0.30125616563304436, + "objective_mean": 0.3012622085213661, + "losses": { + "primary": 0.30125616563304436 + }, + "read_queue": { + "prefill_ready_bytes": 26448000, + "peak_ready_bytes": 150480000, + "refill_cycles": 0, + "in_flight_bytes": 0, + "ready_bytes": 0 + } + }, + "exported_bundle": { + "path": "/home/zym/exp002-discrete-vs-continuous/runs/continuous_jepa/bundle", + "verification": { + "features_match": true, + "max_absolute_difference": 0.0, + "query_preserved": false + } + } + } + }, + "linear_probe": { + "discrete_vq": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 4, + "selection_metric": "auroc", + "best_validation": 0.790994623655914, + "test": { + "auroc": 0.7029803240740741, + "pr_auc": 0.42497574052345233, + "balanced_accuracy": 0.5 + }, + "test_windows": 192, + "steps": 630, + "seed": 3407, + "wall_seconds": 23.336642488953657 + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 29, + "selection_metric": "kappa", + "best_validation": 0.2314814814814815, + "test": { + "kappa": 0.27314814814814814, + "weighted_f1": 0.44386722553780283, + "balanced_accuracy": 0.45486111111111105 + }, + "test_windows": 1152, + "steps": 1350, + "seed": 3407, + "wall_seconds": 41.90539567999076 + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 21, + "selection_metric": "auroc", + "best_validation": 0.9078524212715389, + "test": { + "auroc": 0.9290129243348835, + "pr_auc": 0.9362647810848908, + "balanced_accuracy": 0.8572381113657943 + }, + "test_windows": 1151, + "steps": 2310, + "seed": 3407, + "wall_seconds": 60.56562023109291 + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 3, + "selection_metric": "kappa", + "best_validation": 0.0016666666666667052, + "test": { + "kappa": -0.0016666666666667052, + "weighted_f1": 0.06629588431590656, + "balanced_accuracy": 0.19866666666666666 + }, + "test_windows": 750, + "steps": 2130, + "seed": 3407, + "wall_seconds": 72.83945707802195 + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 11, + "selection_metric": "auroc", + "best_validation": 0.7222609155911489, + "test": { + "auroc": 0.622196426937539, + "pr_auc": 0.6315072689478021, + "balanced_accuracy": 0.5821160250442603 + }, + "test_windows": 2347, + "steps": 3390, + "seed": 3407, + "wall_seconds": 96.09052117797546 + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 18, + "selection_metric": "kappa", + "best_validation": 0.3348207633522787, + "test": { + "kappa": 0.3565674738440562, + "weighted_f1": 0.5217660520108605, + "balanced_accuracy": 0.5173591872060445 + }, + "test_windows": 1803, + "steps": 2970, + "seed": 3407, + "wall_seconds": 137.9473444990581 + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 9, + "selection_metric": "kappa", + "best_validation": 0.0016860061489636369, + "test": { + "kappa": -0.000582285578727193, + "weighted_f1": 0.03560100977409541, + "balanced_accuracy": 0.11070853462157809 + }, + "test_windows": 1932, + "steps": 3150, + "seed": 3407, + "wall_seconds": 223.03082649898715 + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 1, + "selection_metric": "kappa", + "best_validation": 0.40886011134488975, + "test": { + "kappa": 0.44815596893144494, + "weighted_f1": 0.7181581081570461, + "balanced_accuracy": 0.4253620682337281 + }, + "test_windows": 29421, + "steps": 32100, + "seed": 3407, + "wall_seconds": 855.312441788963 + } + }, + "continuous_mae": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 5, + "selection_metric": "auroc", + "best_validation": 0.7297547043010753, + "test": { + "auroc": 0.6577690972222223, + "pr_auc": 0.38896173954997765, + "balanced_accuracy": 0.5 + }, + "test_windows": 192, + "steps": 630, + "seed": 3407, + "wall_seconds": 19.855950417928398 + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 30, + "selection_metric": "kappa", + "best_validation": 0.07060185185185186, + "test": { + "kappa": 0.07986111111111116, + "weighted_f1": 0.2069475799698543, + "balanced_accuracy": 0.3098958333333333 + }, + "test_windows": 1152, + "steps": 1350, + "seed": 3407, + "wall_seconds": 40.625417655101046 + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 19, + "selection_metric": "auroc", + "best_validation": 0.9169748960190137, + "test": { + "auroc": 0.900872105330003, + "pr_auc": 0.8992757683938193, + "balanced_accuracy": 0.8290247177148663 + }, + "test_windows": 1151, + "steps": 2310, + "seed": 3407, + "wall_seconds": 63.114025472081266 + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 16, + "selection_metric": "kappa", + "best_validation": 0.008333333333333304, + "test": { + "kappa": 0.0033333333333332993, + "weighted_f1": 0.07211315801118011, + "balanced_accuracy": 0.2026666666666667 + }, + "test_windows": 750, + "steps": 2130, + "seed": 3407, + "wall_seconds": 70.50315014098305 + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 6, + "selection_metric": "auroc", + "best_validation": 0.6647173330950815, + "test": { + "auroc": 0.6107145398748949, + "pr_auc": 0.6036933939573712, + "balanced_accuracy": 0.5 + }, + "test_windows": 2347, + "steps": 3390, + "seed": 3407, + "wall_seconds": 91.23139373597223 + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 26, + "selection_metric": "kappa", + "best_validation": 0.3256224514910232, + "test": { + "kappa": 0.3780290016292497, + "weighted_f1": 0.537059772721669, + "balanced_accuracy": 0.5335110762327151 + }, + "test_windows": 1803, + "steps": 2970, + "seed": 3407, + "wall_seconds": 136.37880261905957 + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 1, + "selection_metric": "kappa", + "best_validation": 0.0, + "test": { + "kappa": 0.0, + "weighted_f1": 0.020737327188940093, + "balanced_accuracy": 0.1111111111111111 + }, + "test_windows": 1932, + "steps": 3150, + "seed": 3407, + "wall_seconds": 220.067004820914 + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 10, + "selection_metric": "kappa", + "best_validation": 0.24289852750518048, + "test": { + "kappa": 0.45280817678104124, + "weighted_f1": 0.7133251512562165, + "balanced_accuracy": 0.4736455948378338 + }, + "test_windows": 29421, + "steps": 32100, + "seed": 3407, + "wall_seconds": 892.076225087978 + } + }, + "continuous_jepa": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 2, + "selection_metric": "auroc", + "best_validation": 0.803595430107527, + "test": { + "auroc": 0.6494502314814815, + "pr_auc": 0.4196578248475796, + "balanced_accuracy": 0.6180555555555556 + }, + "test_windows": 192, + "steps": 630, + "seed": 3407, + "wall_seconds": 18.444219586090185 + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 21, + "selection_metric": "kappa", + "best_validation": 0.28587962962962965, + "test": { + "kappa": 0.22685185185185186, + "weighted_f1": 0.41653047231343826, + "balanced_accuracy": 0.42013888888888884 + }, + "test_windows": 1152, + "steps": 1350, + "seed": 3407, + "wall_seconds": 37.680784509982914 + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 16, + "selection_metric": "auroc", + "best_validation": 0.9555054218657161, + "test": { + "auroc": 0.9317889045461968, + "pr_auc": 0.9355579172379065, + "balanced_accuracy": 0.8561298360417788 + }, + "test_windows": 1151, + "steps": 2310, + "seed": 3407, + "wall_seconds": 57.543124384013936 + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 19, + "selection_metric": "kappa", + "best_validation": 0.22999999999999998, + "test": { + "kappa": 0.23333333333333328, + "weighted_f1": 0.38593116785242915, + "balanced_accuracy": 0.3866666666666666 + }, + "test_windows": 750, + "steps": 2130, + "seed": 3407, + "wall_seconds": 71.29398025304545 + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 3, + "selection_metric": "auroc", + "best_validation": 0.7222010141949388, + "test": { + "auroc": 0.6632462700115169, + "pr_auc": 0.6604976121807032, + "balanced_accuracy": 0.601243426317387 + }, + "test_windows": 2347, + "steps": 3390, + "seed": 3407, + "wall_seconds": 85.814252375043 + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 13, + "selection_metric": "kappa", + "best_validation": 0.35096818427143484, + "test": { + "kappa": 0.41133823232646394, + "weighted_f1": 0.5587889549726978, + "balanced_accuracy": 0.5585135790294384 + }, + "test_windows": 1803, + "steps": 2970, + "seed": 3407, + "wall_seconds": 131.4007744740229 + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 29, + "selection_metric": "kappa", + "best_validation": 0.1071158858924699, + "test": { + "kappa": 0.11327504815935974, + "weighted_f1": 0.16060310557984844, + "balanced_accuracy": 0.20987654320987653 + }, + "test_windows": 1932, + "steps": 3150, + "seed": 3407, + "wall_seconds": 234.34389001200907 + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 5, + "selection_metric": "kappa", + "best_validation": 0.3237166209969118, + "test": { + "kappa": 0.5385128224901146, + "weighted_f1": 0.7579392500700805, + "balanced_accuracy": 0.5165176027549329 + }, + "test_windows": 29421, + "steps": 32100, + "seed": 3407, + "wall_seconds": 928.5132516589947 + } + } + }, + "finetune": { + "discrete_vq": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 2, + "selection_metric": "auroc", + "best_validation": 0.7950268817204301, + "test": { + "auroc": 0.7264178240740741, + "pr_auc": 0.43685752658130306, + "balanced_accuracy": 0.4965277777777778 + }, + "test_windows": 192, + "steps": 1050, + "seed": 3407, + "wall_seconds": 54.683519578073174, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/eegmat-c210055a6dfc" + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 26, + "selection_metric": "kappa", + "best_validation": 0.2719907407407407, + "test": { + "kappa": 0.3032407407407407, + "weighted_f1": 0.4677077029932461, + "balanced_accuracy": 0.4774305555555556 + }, + "test_windows": 1152, + "steps": 2250, + "seed": 3407, + "wall_seconds": 122.71714744297788, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/bciciv2a-6770f24eb170" + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 36, + "selection_metric": "auroc", + "best_validation": 0.9700534759358288, + "test": { + "auroc": 0.9531515540046085, + "pr_auc": 0.9633703544650576, + "balanced_accuracy": 0.8805224769726696 + }, + "test_windows": 1151, + "steps": 3850, + "seed": 3407, + "wall_seconds": 195.36760903696995, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/mumtaz-f7354303438d" + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 32, + "selection_metric": "kappa", + "best_validation": 0.2483333333333333, + "test": { + "kappa": 0.2833333333333333, + "weighted_f1": 0.4262667397573606, + "balanced_accuracy": 0.42666666666666664 + }, + "test_windows": 750, + "steps": 3550, + "seed": 3407, + "wall_seconds": 210.53887560591102, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/bcic2020-3-06d18dfd3141" + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 10, + "selection_metric": "auroc", + "best_validation": 0.7269528532016449, + "test": { + "auroc": 0.6361316900518632, + "pr_auc": 0.6450644035414531, + "balanced_accuracy": 0.5996037273016421 + }, + "test_windows": 2347, + "steps": 5650, + "seed": 3407, + "wall_seconds": 287.1209812440211, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/shu-mi-bbace0402342" + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 37, + "selection_metric": "kappa", + "best_validation": 0.3671636681467476, + "test": { + "kappa": 0.42472660104380855, + "weighted_f1": 0.5702145209922759, + "balanced_accuracy": 0.568625617282911 + }, + "test_windows": 1803, + "steps": 4950, + "seed": 3407, + "wall_seconds": 406.9886718799826, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/physionet-mi-d57b91addf43" + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 20, + "selection_metric": "kappa", + "best_validation": 0.4325186482143285, + "test": { + "kappa": 0.3678719719573518, + "weighted_f1": 0.44100358506501686, + "balanced_accuracy": 0.43961352657004826 + }, + "test_windows": 1932, + "steps": 5250, + "seed": 3407, + "wall_seconds": 625.1065320780035, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/faced-15bf055b892b" + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "92071c75eacb4cf623d3e7dcf05425440b45522aee3d0a42410df58d2b79bdb0", + "selected_epoch": 40, + "selection_metric": "kappa", + "best_validation": 0.47905437637796866, + "test": { + "kappa": 0.5733134328216013, + "weighted_f1": 0.7737606717166505, + "balanced_accuracy": 0.6204274629367227 + }, + "test_windows": 29421, + "steps": 53500, + "seed": 3407, + "wall_seconds": 2769.5241575130494, + "prediction_audit": "passed", + "status": "passed", + "split": "test", + "run_key": "encoder-bundle-finetune/tuev-5380fee96bb6" + } + }, + "continuous_mae": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 23, + "selection_metric": "auroc", + "best_validation": 0.7841061827956989, + "test": { + "auroc": 0.6120515046296295, + "pr_auc": 0.3547905369410949, + "balanced_accuracy": 0.5416666666666667 + }, + "test_windows": 192, + "steps": 1050, + "seed": 3407, + "wall_seconds": 67.40083100600168 + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 23, + "selection_metric": "kappa", + "best_validation": 0.30439814814814814, + "test": { + "kappa": 0.2280092592592593, + "weighted_f1": 0.41688455585145107, + "balanced_accuracy": 0.4210069444444444 + }, + "test_windows": 1152, + "steps": 2250, + "seed": 3407, + "wall_seconds": 130.08725086890627 + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 50, + "selection_metric": "auroc", + "best_validation": 0.9907178401663697, + "test": { + "auroc": 0.9487441562290213, + "pr_auc": 0.9603148867505977, + "balanced_accuracy": 0.8827586832540053 + }, + "test_windows": 1151, + "steps": 3850, + "seed": 3407, + "wall_seconds": 213.45120930694975 + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 8, + "selection_metric": "kappa", + "best_validation": 0.16333333333333333, + "test": { + "kappa": 0.18000000000000005, + "weighted_f1": 0.343890997994612, + "balanced_accuracy": 0.344 + }, + "test_windows": 750, + "steps": 3550, + "seed": 3407, + "wall_seconds": 199.88046791707166 + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 6, + "selection_metric": "auroc", + "best_validation": 0.7296000211177802, + "test": { + "auroc": 0.662092017759291, + "pr_auc": 0.6515506154842713, + "balanced_accuracy": 0.6118281264296535 + }, + "test_windows": 2347, + "steps": 5650, + "seed": 3407, + "wall_seconds": 307.6280627370579 + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 27, + "selection_metric": "kappa", + "best_validation": 0.36947411832005206, + "test": { + "kappa": 0.42456966837359444, + "weighted_f1": 0.5687603744159051, + "balanced_accuracy": 0.5683788612609942 + }, + "test_windows": 1803, + "steps": 4950, + "seed": 3407, + "wall_seconds": 364.1825387859717 + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 20, + "selection_metric": "kappa", + "best_validation": 0.4479913658712077, + "test": { + "kappa": 0.39889843945589587, + "weighted_f1": 0.4633360502973933, + "balanced_accuracy": 0.46765968867418145 + }, + "test_windows": 1932, + "steps": 5250, + "seed": 3407, + "wall_seconds": 594.9935077049304 + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "b3c23bf873004b5621496eea5de5633ac7be7b3abefe1994b36c1abe9beb50d1", + "selected_epoch": 42, + "selection_metric": "kappa", + "best_validation": 0.3480235926525094, + "test": { + "kappa": 0.5533232515529034, + "weighted_f1": 0.7591578949556138, + "balanced_accuracy": 0.6015029615401765 + }, + "test_windows": 29421, + "steps": 53500, + "seed": 3407, + "wall_seconds": 2708.232426492963 + } + }, + "continuous_jepa": { + "eegmat": { + "dataset": "eegmat", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 9, + "selection_metric": "auroc", + "best_validation": 0.8403057795698925, + "test": { + "auroc": 0.6231915509259259, + "pr_auc": 0.3843538265150609, + "balanced_accuracy": 0.548611111111111 + }, + "test_windows": 192, + "steps": 1050, + "seed": 3407, + "wall_seconds": 53.976537148002535 + }, + "bciciv2a": { + "dataset": "bciciv2a", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 13, + "selection_metric": "kappa", + "best_validation": 0.32060185185185186, + "test": { + "kappa": 0.22916666666666663, + "weighted_f1": 0.4163895975301453, + "balanced_accuracy": 0.421875 + }, + "test_windows": 1152, + "steps": 2250, + "seed": 3407, + "wall_seconds": 119.52789342100732 + }, + "mumtaz": { + "dataset": "mumtaz", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 8, + "selection_metric": "auroc", + "best_validation": 0.9852217023172906, + "test": { + "auroc": 0.9549432405789038, + "pr_auc": 0.9637802244996894, + "balanced_accuracy": 0.8828947607153441 + }, + "test_windows": 1151, + "steps": 3850, + "seed": 3407, + "wall_seconds": 183.8987550099846 + }, + "bcic2020-3": { + "dataset": "bcic2020-3", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 16, + "selection_metric": "kappa", + "best_validation": 0.18333333333333335, + "test": { + "kappa": 0.22499999999999998, + "weighted_f1": 0.3777404298117785, + "balanced_accuracy": 0.38 + }, + "test_windows": 750, + "steps": 3550, + "seed": 3407, + "wall_seconds": 193.017375860014 + }, + "shu-mi": { + "dataset": "shu-mi", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 6, + "selection_metric": "auroc", + "best_validation": 0.7334418326984463, + "test": { + "auroc": 0.6575498045868001, + "pr_auc": 0.6558901361377504, + "balanced_accuracy": 0.6162552411548476 + }, + "test_windows": 2347, + "steps": 5650, + "seed": 3407, + "wall_seconds": 295.1360883859452 + }, + "physionet-mi": { + "dataset": "physionet-mi", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 20, + "selection_metric": "kappa", + "best_validation": 0.36796231580599714, + "test": { + "kappa": 0.43578305055271715, + "weighted_f1": 0.5792026822446701, + "balanced_accuracy": 0.5769026782791987 + }, + "test_windows": 1803, + "steps": 4950, + "seed": 3407, + "wall_seconds": 368.1840041439282 + }, + "faced": { + "dataset": "faced", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 13, + "selection_metric": "kappa", + "best_validation": 0.4352320422112963, + "test": { + "kappa": 0.39210411061753114, + "weighted_f1": 0.46362968105174907, + "balanced_accuracy": 0.46095008051529796 + }, + "test_windows": 1932, + "steps": 5250, + "seed": 3407, + "wall_seconds": 585.377031627926 + }, + "tuev": { + "dataset": "tuev", + "encoder_name": "labram", + "bundle_sha256": "51d99016d55cee2e57944dedb622fea043807cf791f9c4eca4a2d61f7cc5391a", + "selected_epoch": 25, + "selection_metric": "kappa", + "best_validation": 0.40643391543655594, + "test": { + "kappa": 0.5603936842569238, + "weighted_f1": 0.7662688565230711, + "balanced_accuracy": 0.5895108424476864 + }, + "test_windows": 29421, + "steps": 53500, + "seed": 3407, + "wall_seconds": 2713.2032837810693 + } + } + } +} diff --git a/experiments/2026-11-24_exp002_discrete_vs_continuous/plots/exp002_discrete_vs_continuous.png b/experiments/2026-11-24_exp002_discrete_vs_continuous/plots/exp002_discrete_vs_continuous.png new file mode 100644 index 0000000000000000000000000000000000000000..04bc25aaf891d1b6212a9543f89b6c961bb69502 --- /dev/null +++ b/experiments/2026-11-24_exp002_discrete_vs_continuous/plots/exp002_discrete_vs_continuous.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9415ff0a930a1fd5740d3f695bf569d5daf2e40c3e66226c091dc7a1d1a08a2f +size 116424