Closed hajerkr closed 8 months ago
@yuhancui @rpomponio
My first suggestion would be to check for any missing data. Your nifti images and covariates must all be complete — in other words no np.nan
values are allowed.
Secondly, I would check the covariates for linear dependencies. The singularity might arise from a covariate matrix that is rank deficient.
That sorted it out thank you very much @rpomponio , it was the missing Age information for some. One other question I am not entirely sure about- Would it make sense to train my model on a subset of NIFTI data (++many sites, ++scanners), and then apply it on all the data afterwards, because I would still need that subset I used to train to be harmonized for later analyses. Thanks for any helpful insight
You may train on a subset for various purposes, for example if you have healthy controls mixed with heterogeneous diagnoses, you may train the harmonization on controls and apply the model to all samples. Closing the issue.
Hello! I am getting this error and I am trying to figure out why but I couldn't, anyone got the same? I doubt this has to do with my niftis because they seem to be ok. It seems to be the design matrix, could it be the covariates? Thanks for any insight!