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]#

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, this chunk of its time target, or None when targets are not requested.

Type:

np.ndarray | None