AI4Finance-Foundation/ElegantRL

MADDPG init issues

Opened this issue · 1 comments

Following is my code

import elegantrl.agents.AgentMADDPG

a1 = elegantrl.agents.AgentMADDPG.AgentMADDPG()

Output: AgentMADDPG.py
in __init__ super().__init__()
TypeError: __init__() missing 3 required positional arguments: 'net_dims', 'state_dim', and 'action_dim'

It is due to incorrect inheritance from of AgentBase class.

I also have the same problem.
After fixing this, I got other issues in this class.
I think there is a room for some refactoring (even rewriting -> docs old/missing, no examples, old function calls etc.)

If this is not solved yet, I can do it; but if anyone knows this is already solved, it'd make my job lots easier : )

Thanks