braindecode.models.InterpolatedModel#
- braindecode.models.InterpolatedModel(model_cls, target_chs_info, name=None)[source]#
Return a subclass of
model_clsthat interpolates channels totarget_chs_info.Warning
Experimental. Public API may change without a deprecation cycle.
- Parameters:
model_cls (
Type) – A braindecode model class (subclass ofEEGModuleMixin).target_chs_info (
list[dict]) – The canonical channel set the backbone expects internally. Every instance of the returned class projects its input channels to this set viaChannelInterpolationLayer.name (
Optional[str]) –__name__to assign to the returned class. Defaults tof"Interpolated{model_cls.__name__}".
- Returns:
A new subclass of
model_clswhose__init__accepts arbitrary userchs_infoand automatically inserts a frozen (by default) channel-interpolation layer before the backbone.- Return type:
Examples using braindecode.models.InterpolatedModel#
Loading Pretrained Foundation Models on Arbitrary Channel Sets