Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AttributeError from example code in documentation #33

Closed
pstansell opened this issue Jan 19, 2021 · 4 comments
Closed

[BUG] AttributeError from example code in documentation #33

pstansell opened this issue Jan 19, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@pstansell
Copy link
Contributor

Describe the bug

There are AttributeError from the example code on this page https://d3rlpy.readthedocs.io/en/latest/references/model_based.html

from d3rlpy.dynamics import MOPO
mopo = MOPO()

mopo.horizon = 5
# Traceback (most recent call last):
#   File "<stdin>", line 1, in <module>
#   File "/home/ps/miniconda3/envs/d3rlpy/lib/python3.8/site-packages/d3rlpy/base.py", line 151, in __setattr__
#     super().__setattr__(name, value)
# AttributeError: can't set attribute

mopo.n_transitions = 400
# Traceback (most recent call last):
#   File "<stdin>", line 1, in <module>
#   File "/home/ps/miniconda3/envs/d3rlpy/lib/python3.8/site-packages/d3rlpy/base.py", line 151, in __setattr__
#     super().__setattr__(name, value)
# AttributeError: can't set attribute
@pstansell pstansell added the bug Something isn't working label Jan 19, 2021
@takuseno
Copy link
Owner

@pstansell Thank you for reporting this. The documentation of that page is a bit out-of-the-data now. I'll update the docs.

@takuseno
Copy link
Owner

@pstansell I've fixed the page! You can see the latest version in readthedocs in an hour.

@pstansell
Copy link
Contributor Author

Thanks (d3rlpy is a superb project!)

@takuseno
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants