From 1426310e6e4e73bf2625981a5fe3582670075531 Mon Sep 17 00:00:00 2001 From: Eli Sennesh Date: Fri, 12 Dec 2025 18:53:32 -0500 Subject: [PATCH] distributions.mixtures._MixtureBase: mixtures lack reparameterized sampling Testing Done: create a mixture distribution, check its has_rsample Signed-off-by: Eli Sennesh --- numpyro/distributions/mixtures.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/numpyro/distributions/mixtures.py b/numpyro/distributions/mixtures.py index c6631f0d9..b4803a3ba 100644 --- a/numpyro/distributions/mixtures.py +++ b/numpyro/distributions/mixtures.py @@ -80,6 +80,10 @@ def component_sample( def component_cdf(self, samples: ArrayLike) -> ArrayLike: raise NotImplementedError + @property + def has_rsample(self) -> bool: + return False + @property def mixture_size(self) -> int: """The number of components in the mixture"""