ElegantRL icon indicating copy to clipboard operation
ElegantRL copied to clipboard

MADDPG init issues

Open khanrezwan opened this issue 1 year ago • 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.

khanrezwan avatar Nov 26 '23 10:11 khanrezwan

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

afeser avatar Jan 06 '24 09:01 afeser