-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I was inspired by your research and am currently conducting a follow-up study.
I am attempting to apply the Robust Scaling preprocessing described in the BrainLM paper using the provided code in BrainLM/toolkit/BrainLM_Toolkit.py on our fMRI dataset.
"Robust scaling was applied by subtracting the median and dividing by the interquartile range computed across subjects for each parcel."
However, we noticed that in line 298, the code is written as follows:
recording_mean_subtracted3 = (recording_mean_subtracted3 - data_median_per_voxel / IQR)
According to the original definition of robust scaling, the correct transformation should be:
Wouldn't the intended implementation be:
recording_mean_subtracted3 = (recording_mean_subtracted3 - data_median_per_voxel) / IQR
It seems like a possible typo, but I wanted to check if there was a specific reason for implementing it this way.
I would appreciate a prompt response.