theislab / multimil

Multimodal weakly supervised learning to identify disease-specific changes in single-cell atlases
https://multimil.rtfd.io/
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

Support MMD integration #54

Closed alitinet closed 3 months ago

alitinet commented 1 year ago

Currently can't use MMD integration with integrate_on parameter as the sampler takes group=patient_column. If integrate_on is specified, check if there are multiple groups in the current batch and use the same number of group batches from each group for MMD calculation. If one group has more batches than the other, use the smallest number of group batches and subset others randomly.