braindecode.training.TrialPredictionChunk#

class braindecode.training.TrialPredictionChunk(trial_index, prediction_start, prediction, target)[source]#

One chunk yielded by iter_trial_prediction_chunks().

trial_index[source]#

Zero-based trial index.

Type:

int

prediction_start[source]#

Zero-based offset of the chunk in the trial’s reconstructed predictions, not an EEG sample index.

Type:

int

prediction[source]#

Float32 array of shape (n_outputs, n_predictions_in_chunk).

Type:

np.ndarray

target[source]#

The trial’s scalar or vector target (its first window’s, repeated in every chunk), this chunk of its time target, or None when targets are not requested.

Type:

np.ndarray | None

Examples using braindecode.training.TrialPredictionChunk#

Cropped Decoding on BCIC IV 2a Dataset

Cropped Decoding on BCIC IV 2a Dataset