You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Computation of cross-validated r2, tested with 3 folds (i.e., 2 fold events), spaced at 1/3 and 2/3 of cont. data.
Function returns 3 values, but first one is negative:
while R² can never be <0, cross-validated R² can be. This was initially very unintuitive for me.
So it is possible, but seems unlikely with your other two values.
Could you add more folds (randomly placed, just for testing) to further debug it?
Computation of cross-validated r2, tested with 3 folds (i.e., 2 fold events), spaced at 1/3 and 2/3 of cont. data.
Function returns 3 values, but first one is negative:
R2 = uf_checkmodelfit(EEG,'method','crossValR2','fold_event',{'foldmarker'},'channel',1)
Resulting in the following R2:
[-0.583 0.1999 0.2045] % note negative value in R1(1)
The text was updated successfully, but these errors were encountered: