braindecode.modules.SubjectLayers#

class braindecode.modules.SubjectLayers(in_channels, out_channels, n_subjects, init_id=False)[source]#

Per-subject linear transformation layer.

Applies subject-specific linear transformations to the input. Each subject owns an independent weight matrix, enabling personalized feature processing.

Methods

forward(x, subjects)[source]#

Apply the subject-specific linear transforms.

Return type:

Tensor