From a0b7a06be8fc7dcf65d0e60d0d39d142e47d2bae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 13:20:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mne_bids_pipeline/steps/sensor/_05_decoding_csp.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mne_bids_pipeline/steps/sensor/_05_decoding_csp.py b/mne_bids_pipeline/steps/sensor/_05_decoding_csp.py index 37223a487..415d67ae8 100644 --- a/mne_bids_pipeline/steps/sensor/_05_decoding_csp.py +++ b/mne_bids_pipeline/steps/sensor/_05_decoding_csp.py @@ -170,11 +170,13 @@ def one_subject_decoding( clf = make_pipeline( *preproc_steps, csp, - LinearModel(LogReg( - solver="liblinear", # much faster than the default - random_state=cfg.random_state, - n_jobs=1, - )), + LinearModel( + LogReg( + solver="liblinear", # much faster than the default + random_state=cfg.random_state, + n_jobs=1, + ) + ), ) cv = StratifiedKFold( n_splits=cfg.decoding_n_splits, @@ -261,7 +263,7 @@ def _fmt_contrast(cond1, cond2, fmin, fmax, freq_range_name, tmin=None, tmax=Non # PATTERNS csp.fit_transform(X, y) sensor_pattern_csp = csp.patterns_ - + # save scores # XXX right now this saves in working directory csp_fname = cond1 + cond2 + str(fmin) + str(fmax)