saezlab / mistyR

Multiview Intercellular SpaTial modeling framework
https://saezlab.github.io/mistyR/
GNU General Public License v3.0
43 stars 12 forks source link

Scaling before running linear model #44

Closed Zach-Sten closed 1 day ago

Zach-Sten commented 1 month ago

Hello,

I was reading through the methods for MISTy and wasn't sure if or how the factors in each view of the MISTy object are scaled before running the model. Could you provide some information on this? I am using the python version of MISTy within the Liana package.

dbdimitrov commented 1 month ago

Hi @Zach-Sten,

What do you mean by the factors in each view being scaled?

In short, MISTy does not necessarily work with factors, but rather you can think of it as a series of leave-one-feature-out (LOFO) models - similar to GRN algorithms. Once these LOFO models are fit per target, we then use the predictions for each target in a subsequent model (typically ridge) to estimate the contribution of each view for each target. So, in that sense, it does not necessarily require scaling for the 'late-fusion' (multi-view) model.

Does this answer your question?

Zach-Sten commented 1 month ago

Apologies. What i meant to say was features not factors. My understanding now is that since it builds individual models for each view rather than combining the raw features from each view and then building a model. So therefore when its using the predictions from each LOFO they don't necessarily need to be scaled. Makes sense! Thanks for clarifying :)