From 5086e4941ea4d3851d7a902aadaa1f68480f31c9 Mon Sep 17 00:00:00 2001 From: Dustin Tran Date: Fri, 13 May 2016 23:02:20 -0400 Subject: [PATCH] fix MAP --- edward/variationals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edward/variationals.py b/edward/variationals.py index a2d3cf9ce..1002f2d8e 100644 --- a/edward/variationals.py +++ b/edward/variationals.py @@ -521,8 +521,8 @@ class PointMass(Likelihood): """ def __init__(self, num_vars, transform=tf.identity): Likelihood.__init__(self, 1) - self.num_vars = self.num_vars - self.num_params = self.num_vars + self.num_vars = num_vars + self.num_params = num_vars self.transform = transform self.params = None