LOLCAT#
- class ts3.models.supervised.LOLCAT(n_classes, encoder_hidden, n_heads, attn_hidden, dropout, batchnorm, bias, n_bins)[source]#
Bases:
torch.nn.modules.module.ModuleISI histogram encoder, attention pooling and a brain region classifier [Schneider et al., 2023].
Reference implementation: nerdslab/lolcat.
- forward(x, batch)[source]#
Define the computation performed at every call.
Should be overridden by all subclasses. :rtype:
TensorNote
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.