neuraltrain.models.base.BaseBrainDecodeModel¶
- pydantic model neuraltrain.models.base.BaseBrainDecodeModel[source][source]¶
Base class for braindecode model configurations.
Subclasses set
_MODEL_CLASS_PATH(e.g."braindecode.models.Labram") to resolve the underlying class lazily, avoiding an unconditional braindecode import at module load time. Subclasses that need custom resolution (e.g. optional-dependency handling) can instead override_ensure_model_classdirectly.The dynamic registration in
_register_braindecode_models()sets_MODEL_CLASSdirectly at import time for the common braindecode models, which short-circuits the lazy path.- kwargs[source]¶
Free-form keyword arguments forwarded to the braindecode model constructor. Validated against the model’s
__init__signature at config creation time.- Type: