Closed JacPhe closed 3 days ago
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴
Huh, I think you are right @JacPhe . Would you be up for a PR to fix this?
Also just to be safe, CC'ing @wmvanvliet as the author of that tutorial... On line 152 shouldn't model_plan.apply(...)
actually be model_sub.apply(...)
?
I've sent a pull request just in case, hopefully that helps!
Proposed documentation enhancement
In the aforementioned tutorial, under "Subtract the evoked response from the epoch data before regression":
I think that epochs_clean_sub = model_plain.apply(epochs) is incorrect, as this applies the regression coefficients from model_plain, which was trained on the default epochs, rather than epochs.subtract_evoked().
I think it should be epochs_clean_sub = model_sub.apply(epochs) instead. Otherwise, model_sub appears to be redundant.