Skip to content

garch example fails #1491

Closed
Closed
@mikemac8888

Description

@mikemac8888

Running examples/garch_example.py fails with error:

Traceback (most recent call last):
  File "garch_example.py", line 40, in <module>
    beta1 = BoundedNormal('beta1', 0, sd=1e6)
  File "/Users/**/anaconda3/envs/py35/lib/python3.5/site-packages/pymc3/distributions/continuous.py", line 1102, in __call__
    *args, **kwargs)
  File "/Users/**/anaconda3/envs/py35/lib/python3.5/site-packages/pymc3/distributions/distribution.py", line 27, in __new__
    return model.Var(name, dist, data)
  File "/Users/**/anaconda3/envs/py35/lib/python3.5/site-packages/pymc3/model.py", line 288, in Var
    transform=dist.transform)
  File "/Users/**/anaconda3/envs/py35/lib/python3.5/site-packages/pymc3/model.py", line 689, in __init__
    transformed_name = "{}_{}_".format(name, transform.name)
AttributeError: 'int' object has no attribute 'name'

Python 3.5.2
pymc3 (3.0rc2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions