obob_mne.decoding.GeneralizedTemporalStatistics

class obob_mne.decoding.GeneralizedTemporalStatistics(data_list, stat_function=<function ttest_1samp>, popmean=None, **kwargs)[source]

Run statistics on Temporal Generalization results.

Given a list of Temporal Generalization Results, this class calculates a statistic on the weights and returns an instance of GeneralizedTemporalArray.

get_temporal_from_training_interval(tmin, tmax)[source]

Average the scores of a training interval.

Parameters:
  • tmin (int) – Start time in seconds of the training interval to average.
  • tmax (int) – End time in seconds of the training interval to average.
Returns:

data – The TemporalArray with the averaged scores.

Return type:

instance of TemporalArray

plot_scores(axes=None, show=True, cmap='Reds', colorbar=True, mask_below_chance=False, interpolation='bessel', mask_p=None)[source]

Plot the scores as a Matrix.

Parameters:
  • axes (matplotlib.axes.Axes or None, optional) – The axes where to draw the plot. If None, a new figure is created.
  • show (bool, optional) – True to actually show the plot.
  • cmap (str or matplotlib.colors.Colormap, optional) – The colormap.
  • colorbar (bool, optional) – Whether to draw the colorbar.
  • mask_below_chance (bool, optional) – If True, values below chance level get masked.
  • interpolation (str, optional) – The interpolation method used.
  • mask_p (float or None, optional) – If set, the plot is masked for the given p-value.