-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
get_variable_name
missing in pm.distributions:
with pm.Model():
test=pm.DiscreteUniform('test', 0,10)
test
raise:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/IPython/core/formatters.py in __call__(self, obj)
307 method = get_real_method(obj, self.print_method)
308 if method is not None:
--> 309 return method()
310 return None
311 else:
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pymc3/model.py in _repr_latex_(self, name, dist)
830 if dist is None:
831 dist = self.distribution
--> 832 return self.distribution._repr_latex_(name=name, dist=dist)
833
834 @property
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pymc3/distributions/discrete.py in _repr_latex_(self, name, dist)
468 upper = dist.upper
469 return r'${} \sim \text{{DiscreteUniform}}(\mathit{{lower}}={}, \mathit{{upper}}={})$'.format(name,
--> 470 get_variable_name(lower),
471 get_variable_name(upper))
472
NameError: name 'get_variable_name' is not defined
Metadata
Metadata
Assignees
Labels
No labels