ValueError: data copying was not requested by copy=None but it was required to get to double floating point precision

When i use Common spatial pattern
i get this error
ValueError: data copying was not requested by copy=None but it was required to get to double floating point precision
Here is code

scaler=mne.decoding.Scaler(scalings='mean')
csp=mne.decoding.CSP()                   
clf=LogisticRegression(solver='lbfgs')

x_train_scaled=scaler.fit_transform(x_train)
x_test_scaled=scaler.transform(x_test)

x_train_csp=csp.fit_transform(x_train_scaled,y_train)
x_test_csp=csp.transform(x_test_scaled,y_test)

Hello, we’d need to see the entire traceback to see where the issue actually occurs.

I assume that you tinkered with the dtype of your input data? This is bound to create problems and should therefore be avoided.

Best wishes,
Richard

Yes, i am changing dtype to float16 to fit in memory

Don’t do that then :woman_shrugging: It’s not supported.