You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FCLayers enable the re-inject of covariates in every layer. However, this is enabled only for categorical cov with one hot encoding. This is now inconsistent with other covariates (continuous, embedded) that get simply concat to the input before being passed to the layers and thus not re-injected.
For SysVI I will make a new Layers class that will directly follow the FCLayers, but will have another input for continuous covariates, so that these can be likewise injected. - You could consider fixing the above inconsistency in scvi-tools in the same way I guess. @canergen
The text was updated successfully, but these errors were encountered:
@ori-kron-wis can you please fix this? It should behave similarly for all types of covariates.
It needs a legacy load though similarly to the fix in scANVI. Maybe the better option would be deeply_inject=‘all’ and clarify in the documentation the difference.
Great, then I can just re-use your layers if this will be implemented from your side - for sysVI maybe I will already add an updated Layers version myself so that I can then be more easily switched with your new layers, else the rest of the code would also need to be adapted later
@ori-kron-wis I added my implementation here - Maybe you will need to adjust slightly as I changed parameter signature to add the continuous kwarg (x,cont=None,cat_list=None) - I think you could change it to (x,*cat_list,cont=None) to reduce changes needed in other models.
The FCLayers enable the re-inject of covariates in every layer. However, this is enabled only for categorical cov with one hot encoding. This is now inconsistent with other covariates (continuous, embedded) that get simply concat to the input before being passed to the layers and thus not re-injected.
For SysVI I will make a new Layers class that will directly follow the FCLayers, but will have another input for continuous covariates, so that these can be likewise injected. - You could consider fixing the above inconsistency in scvi-tools in the same way I guess.
@canergen
The text was updated successfully, but these errors were encountered: