coco_pipe.decoding.foundation_models.validation#
Opt-in real-checkpoint validation for foundation-model registry entries.
Attributes#
Functions#
|
Download each checkpoint and run one headless forward pass. |
|
Run tiny grouped training and checkpoint-reload smoke tests. |
|
Module Contents#
- coco_pipe.decoding.foundation_models.validation.DEFAULT_CHANNELS = ['Fp1', 'Fp2', 'F7', 'F3', 'Fz', 'F4', 'F8', 'T7', 'C3', 'Cz', 'C4', 'T8', 'P7', 'P3', 'Pz',...#
- coco_pipe.decoding.foundation_models.validation.validate_real_checkpoints(model_keys=('cbramod', 'labram', 'reve', 'luna'), device='cpu', token=None, ch_names=None)#
Download each checkpoint and run one headless forward pass.
- Parameters:
ch_names (sequence of str, optional) – Montage to validate against. Defaults to
DEFAULT_CHANNELS(a representative 19-channel 10-20 set). Pass the study’s actual channel list to exercise the exact channel adaptation (e.g. the real128 x NLaBraM interpolation) the cohort run will use.model_keys (collections.abc.Sequence[str])
device (str)
token (str | None)
- Return type:
- coco_pipe.decoding.foundation_models.validation.validate_real_training(model_keys=('cbramod', 'labram', 'reve', 'luna'), train_modes=('linear_probe', 'full', 'lora'), device='cpu', token=None, max_epochs=1, ch_names=None)#
Run tiny grouped training and checkpoint-reload smoke tests.
ch_namesdefaults toDEFAULT_CHANNELS; pass the study montage to train against the exact channel adaptation used in cohort runs.- Parameters:
model_keys (collections.abc.Sequence[str])
train_modes (collections.abc.Sequence[str])
device (str)
token (str | None)
max_epochs (int)
ch_names (collections.abc.Sequence[str] | None)
- Return type:
- coco_pipe.decoding.foundation_models.validation.main()#
- Return type:
None