AI4Finance-Foundation / FinRL-Meta

FinRL­-Meta: Dynamic datasets and market environments for FinRL.
https://ai4finance.org
MIT License
1.24k stars 576 forks source link

AttributeError: module 'elegantrl.agents.AgentTD3' has no attribute 'if_off_policy' . used tushare #140

Closed tk19961002 closed 2 years ago

tk19961002 commented 2 years ago

Traceback (most recent call last): File "E://FinRL-Meta-master/main.py", line 130, in main() File "E://FinRL-Meta-master/main.py", line 75, in main token='d39d700674f33370058aeeaa3b074edda4f683a950b878cc660d4c3c' File "E:\FinRL-Meta-master\train.py", line 34, in train model = agent.get_model(model_name, model_kwargs=erl_params) File "E:\FinRL-Meta-master\agents\elegantrl_models.py", line 60, in get_model model = Arguments(agent, env) File "E:\Anconda\envs\FinRL\lib\site-packages\elegantrl\train\config.py", line 127, in init self.if_off_policy = agent.if_off_policy # agent is on-policy or off-policy AttributeError: module 'elegantrl.agents.AgentTD3' has no attribute 'if_off_policy'