pyeeg.models.TRFEstimator.plot_multialpha_scores

TRFEstimator.plot_multialpha_scores(X, y)

Plot the score against different alphas to visualise effect of regularisation.

Uses multialpha_score() and marks the best regularisation value(s) with a star. The estimator must have been fitted with an array of several alpha values at once.

Parameters:
  • X (ndarray or list of ndarray) – Feature matrix (already lagged or not) used to score the models. A list of segments is accepted, in which case scores are averaged across segments.

  • y (ndarray or list of ndarray) – EEG data, shape (nsamples, nchans) for a single subject or (nsubjects, nsamples, nchans) for several subjects. When y is 3-dimensional, the best alpha is searched per subject and each peak is marked individually.

Return type:

None.