Open silviaformica opened 2 years ago
Thanks for your suggestion @silviaformica
@Benjamin-Peters since you know the movie code best, do you think this is feasible?
Hi @silviaformica
Sorry for taking so long to reply to you.
The noise argument passed to calc_rdm_movie
does take into account time, which should be represented as the first dimension of the noise array. The next one is then for crossvalidation folds. calc_rdm_movie
simply passes each slice to the calc_rdm_crossnobis
function.
Does this make sense?
Jasper
I think we could make this more user-friendly by:
calculating noise movies instead of a single noise matrix if the dataset class is TemporalDataset
. We might want some options here:
This would require adapting the functions in data/noise.py to handle TemporalDataset
as input and return the corresponding noise movie.
enable noise movies as input for the rdm calculations.
This would require adapting the calc_rdm_movie
function in rdm/calc.py to use the single noise input or the noise movie as input.
Benjamin
Dear developers, I am using your toolbox to analyze my EEG data. What I want to achieve is to compute RDMs over time, using the crossnobis option of the function calc_rdm_movie. My cv descriptor is the run the trial belongs to (n_run = 2).
I want to add in my computation a multivariate noise matrix. I can compute it successfully for one time point (or over an averaged time window) using prec_from_measurements(). However, it seems to me that only one matrix per cross validation fold can be passed to calc_rdm_movie. Am I right? I would like the noise matrix to be computed for each time point. Maybe this option is already possible, but I am missing how to implement it.
Looking forward to any suggestion, also if my approach is wrong! (I am really new to this type of analysis) Thanks a lot, Silvia