braindecode.training.trial_preds_from_window_preds#

braindecode.training.trial_preds_from_window_preds(preds, i_window_in_trials, i_stop_in_trials)[source]#

Assigning window predictions to trials while removing duplicate predictions.

Parameters:
  • preds (list of ndarrays (at least 2darrays)) –

    List of window predictions, in each window prediction

    time is in axis=1

  • i_window_in_trials (list) – Index/number of window in trial

  • i_stop_in_trials (list) – stop position of window in trial

Returns:

preds_per_trial – Predictions in each trial, duplicates removed

Return type:

list of ndarrays