Hi Martin (and all TDT experts),
I recently started to use TDT and I’m basically moving my data from CoSMoMVPA to TDT. This wasn’t a problem until I got this error:
Error using ==
Matrix dimensions must agree.Error in decoding_transform_results (line 98)
output = 100 * (1/size(predicted_labels,1)) * sum(predicted_labels == true_labels); % calculate mean (faster than Matlab function)Error in decoding_generate_output (line 35)
output = decoding_transform_results(curr_output,decoding_out,chancelevel,cfg,data);Error in decoding (line 568)
results = decoding_generate_output(cfg,results,decoding_out,i_decoding,curr_decoding,current_data);Error in my_script
[results, cfg] = decoding(cfg);
I’m running an ROI analysis, lda classifier and using “make_design_cv”. I have my data preprocessed in SPM, but I want to use the labels in a different way so I manually defined chunks, names and labels using “cfg.files”. This was not a problem until I had to change the beta files (these betas were created using cosmo functions). I had to use different betas in a second analysis (but still using the same logic as before), and I got this error. The betas were created in the exact same way and the struct is the same. I don’t understand why are the predicted labels and true labels are not matching.
Any ideas about this problem?
Thank you in advance!
Lénia