- MNE-Python version: 0.23.0
- operating system: Linux
Hi! Guys,
I’m wondering how to conduct the significant test in decoding analysis.
Here is my code:
epo_data = epoch.get_data()
labels_ani = epoch.metadata['feature_animacy']
n_cvsplits = 10
cv = StratifiedKFold(n_splits=n_cvsplits)
clf = make_pipeline(
StandardScaler(), # Z-score data, because gradiometers and magnetometers have different scales
LogisticRegression(random_state=0, n_jobs=12, max_iter=500)
)
sliding_ani = SlidingEstimator(clf, n_jobs=12)
sliding_ani.fit(epo_data, labels_ani)
auc_fea_ani = cross_val_multiscore(sliding_ani, epo_data, labels_ani, cv=cv, n_jobs=12)
auc_fea_ani_avg = np.nanmean(auc_fea_ani, axis=0)
And here is the plot of the result:
I’m trying to figure out how to find the significant cluster in the time dimension, and produce the plot like this in which the significant time range was marked:
I searched in MNE’s tutorial, but there seems no topic about the significance test in decoding analysis, did I miss it? or are there some functions that can help me do the significance test?
Thanks a lot!