Jianxun-Wang / PIMBRL

Physics-informed Dyna-style model-based deep reinforcement learning for dynamic control
MIT License
38 stars 10 forks source link

Cartpole example not working #1

Closed lcdbezerra closed 2 years ago

lcdbezerra commented 2 years ago

When running:

python cartpole.py

After changing the Path to include the desired modules:

import sys
sys.path.insert(0, '/PATH_TO/PIMBRL')
sys.path.insert(0, '/PATH_TO/PIMBRL/src')

I get the following error:

Traceback (most recent call last):
File "/PATH_TO/PIMBRL/examples/cartpole.py", line 34, in <module>
RL = TD3(**RLinp)
TypeError: __init__() got an unexpected keyword argument 'net_type'

Package Version

python=3.9.7

Xin-yang-Liu commented 2 years ago

Thank you for pointing this bug out. This bug is due to the outdated API. I have fixed it.

As we keep developing this package and may modify some interfaces, there may be more outdated APIs/misuse of modules. Please feel free to report the bugs here and I will try my best to fix them.