omicverse.micro.MMvec.conditional_probabilities#
- MMvec.conditional_probabilities()[source]#
Per-microbe P(metabolite | microbe) — softmax of
U @ V.T + β.For each microbe (row), the values across metabolites (columns) sum to 1 — this is what MMvec’s loss directly optimises. Use these when the question is “given that microbe X is present, which metabolite is most likely?” rather than the symmetric co-occurrence question. Numerically stable: subtracts the per-row max before exponentiating.