neuraltrain.models.base.BaseBrainDecodeModel

class neuraltrain.models.base.BaseBrainDecodeModel(*, kwargs: dict[str, Any] = {}, from_pretrained_name: str | None = None)[source][source]

Base class for braindecode model configurations.

kwargs[source]

Free-form keyword arguments forwarded to the braindecode model constructor. Validated against the model’s __init__ signature at config creation time.

Type:

dict

from_pretrained_name[source]

Optional HuggingFace Hub repository ID (e.g. "braindecode/labram-pretrained"). When set, build() calls _MODEL_CLASS.from_pretrained() instead of the regular constructor.

Type:

str or None