Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not preloading covariance matrices causes error in crossval #31

Open
OleBialas opened this issue Apr 30, 2024 · 0 comments
Open

Not preloading covariance matrices causes error in crossval #31

OleBialas opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@OleBialas
Copy link
Collaborator

OleBialas commented Apr 30, 2024

When setting preload=False in the TRF instance, crossval produces an error. I don't have time to fix this right now, so I'll just leave a minimal example here:

from mtrf import TRF, load_sample_data
from mtrf.stats import crossval

tmin, tmax = 0, 0.4
regularization = 1000
stimulus, response, fs = load_sample_data(n_segments=10)

# This workds
trf = TRF()
crossval(trf, stimulus, response, fs, tmin, tmax, regularization)

# This does not
trf = TRF(preload=False)
crossval(trf, stimulus, response, fs, tmin, tmax, regularization)
@OleBialas OleBialas added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant