scglue.models.prob.ZILN
- class scglue.models.prob.ZILN(zi_logits, loc, scale)[source]
Bases:
LogNormal
Zero-inflated log-normal distribution with subsetting support
- Parameters
zi_logits (
torch.Tensor
) – Zero-inflation logitsloc (
torch.Tensor
) – Location of the log-normal distributionscale (
torch.Tensor
) – Scale of the log-normal distribution
Methods
Scores the sample by inverting the transform(s) and computing the score using the score of the base distribution and the log abs det jacobian.
Attributes