From 07c84e1c32814039eb447f83f2f1f34d4b0c307c Mon Sep 17 00:00:00 2001 From: Divyanshu Date: Sat, 9 Mar 2019 14:11:24 +0530 Subject: [PATCH] fix-doc-logp_nojact --- pymc3/model.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pymc3/model.py b/pymc3/model.py index 31f64aa5ba..be800973b0 100644 --- a/pymc3/model.py +++ b/pymc3/model.py @@ -269,7 +269,9 @@ def logpt(self): @property def logp_nojact(self): - """Theano scalar of log-probability, excluding jacobian terms.""" + """Theano scalar of log-probability of the model but without the jacobian + if transformed Random Variable is presented. + """ if getattr(self, 'total_size', None) is not None: logp = tt.sum(self.logp_nojac_unscaledt) * self.scaling else: @@ -734,7 +736,9 @@ def logpt(self): @property def logp_nojact(self): - """Theano scalar of log-probability of the model""" + """Theano scalar of log-probability of the model but without the jacobian + if transformed Random Variable is presented. + """ with self: factors = [var.logp_nojact for var in self.basic_RVs] + self.potentials logp = tt.sum([tt.sum(factor) for factor in factors])