I was trying MNE tutorial’s decoding section on a data and the plots that are supposed to be shown are not being shown. One or two windows closes instantly for csp.plot code lines and, for epochs.plot() a MNE window opens but in a way that it does not respond (MNE visualization app uses 5-6 GB of RAM, this is way it probably does not respond). What can be the problem? What can I do to see these plots? The info and the code is given below.
MNE version: 1.0.3
operating system: Windows 10
from winreg import QueryInfoKey
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
import mne
from mne.datasets import sample
from mne.decoding import (SlidingEstimator, GeneralizingEstimator, Scaler,
cross_val_multiscore, LinearModel, get_coef,
Vectorizer, CSP)
data_file = 's22_epochs_autoreject-epo.fif'
epochs = mne.read_epochs(data_file)
epochs.plot()
X = epochs.get_data() # MEG signals: n_epochs, n_meg_channels, n_times
y = epochs.metadata.Congruency
csp = CSP(n_components=3, norm_trace=False)
clf_csp = make_pipeline(
csp,
LinearModel(LogisticRegression(solver='liblinear'))
)
scores = cross_val_multiscore(clf_csp, X, y, cv=5, n_jobs=1)
print('CSP: %0.1f%%' % (100 * scores.mean(),))
# Fit CSP on full data and plot
csp.fit(X, y)
csp.plot_patterns(epochs.info)
csp.plot_filters(epochs.info, scalings=1e-9)
Where should I run conda init powershell? In Pycharm it says that I should run it in anaconda prompt but I cannot find anaconda promt, How can I open it?
yes, but… Installing MNE-Python — MNE 1.1.0 documentation has several different approaches: a standalone installer, using pip, using conda, installing with/without hdf5 support… can you be more specific?