mne-tools / mne-features

MNE-Features software for extracting features from multivariate time series
https://mne-tools.github.io/mne-features/
BSD 3-Clause "New" or "Revised" License
142 stars 32 forks source link

Error inside the package: _check_input() got an unexpected keyword argument 'reset' #73

Open victor-cali opened 2 years ago

victor-cali commented 2 years ago

Version: 0.2

Problem: I just updated the version of mne-features, I am using mne_features.feature_extraction.extract_features() but no matter what the input arguments are, it pops up the following error:

TypeError: _check_input() got an unexpected keyword argument 'reset'

An example could be:

feature = extract_features(X = data, sfreq = 250.0, selected_funcs = 'max_cross_corr', funcs_params = {'max_cross_corr__include_diag': False})

With data being a numpy array with shape: (318, 2, 500), i.e. (n_epochs, n_channels, n_times)

Any ideas?

paulroujansky commented 2 years ago

This is most probably linked to https://github.com/mne-tools/mne-features/pull/70 : you might have to upgrade scikit-learn to a version >=1.0 in order to fix this.