UnfoldDecode for discriminability analysis on single participant level? #326
Replies: 2 comments 2 replies
-
DecodingAs I understand, you want to figure out how well you can decode your results. Stimulation orthogonalIf your stimulation is orthogonal (i.e. no correlations between predictors & no biased overlap), you wouldn't need any specific overlap correction. I.e. you'd want to use standard epoching & some LDA/SVM on each time-point, or the whole epoch. Is that correct? If yes, there is no tutorial yet, but it should be very easy to write for me. In terms of decoders, cross-validation scheme etc. available, I would entirely rely on MLJ.jl, the machine learning backend of julia. Overlap-corrected decodingBut given you are using unfold already, likely you have biased overlap. In that case, you should be able to use our overlap-corrected MLJ implementation. It is not super polished right now, but I'm happy to to provide support there as well Always include the intercept?Indeed, your case sounds like one, where it doesnt make sense to include one. I think it really starts making sense when interactions come into play. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick reply! Yes, I think the overlap-corrected MLJ-implementation is the way to go. So does that mean we can basically follow the quickstart example on the UnfoldDecode github page? (except maybe changing LDA to some MLJ-supported model and ofc modifying other details too) The quickstart example: LDA = @load LDA pkg=MultivariateStats Defining custom folds In addition, we would like to use specific folds to create the train and test sets. In UnfoldDecode.jl/src/fit.jl, in the function Unfold.fit, the folding seems to be done using MLJBase.train_test_pairs(). So I guess defining custom folds should be possible by doing some modifications there, if needed, right? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have used Unfold.jl to recover overlapping MEG responses to simultaneously presented visual
stimuli, and it has worked great. Now we would like to compute discriminabilities between the
estimated responses. As we have been very happy with Unfold so far, we’re hoping we could use
UnfoldDecode for the decoding of our data. However, we have understood that it is not currently
possible to run the decoding analysis on a single participant level.
So our question is, is it possible to use UnfoldDecode for decoding and statistical testing of the
estimated responses on individual level, or could that kind of functionality be implemented? I guess
part of the question is how the computational folds are defined and whether one can freely
choose the folding, right?
I’ve also got a side-question: When estimating the visual evoked responses with Unfold.jl we have
used a model with no intercept with good results. I remember that in the Unfold-workshop it was
told that one practically always wants to include the intercept term in the model. In more detail our
stimulus consists of several small regions that are shown in parallel with uncorrelated timing
sequences. The model we used was of the form y ~ region1 + region2 + … + regionN. Does it make
sense to you to have a model without intercept in this case, or should we maybe add the intercept
term?
And thanks for the great toolbox!
Best, Riikka
Beta Was this translation helpful? Give feedback.
All reactions