braindecode.training.CroppedLoss

class braindecode.training.CroppedLoss(loss_function)

Compute Loss after averaging predictions across time. Assumes predictions are in shape: n_batch size x n_classes x n_predictions (in time)

Methods

__call__(preds, targets)

Call self as a function.

__hash__(/)

Return hash(self).

Examples using braindecode.training.CroppedLoss