rlcard icon indicating copy to clipboard operation
rlcard copied to clipboard

Train DMC agents against random agents

Open DY-Z opened this issue 3 years ago • 1 comments

I'd like to train DMC agents against random agents, i.e., DMC agents and random agents exist simultaneously during training. Is that feasible using RLCard? If yes, will there be many modifications of code?

DY-Z avatar Dec 13 '21 16:12 DY-Z

@DY-Z Yes, it is achievable. Although the current implementation of DMC does not explicitly support this, it can be easily achieved. The simplest modification I have in mind is to modify here https://github.com/datamllab/rlcard/blob/master/rlcard/agents/dmc_agent/utils.py#L86

Instead of feeding the environment with all DMC agents, just simply feed it with one DMC agent and some random agents. In this way, the DMC agent will be trained in the same way as playing with random agents. Hope this would help.

daochenzha avatar Dec 15 '21 17:12 daochenzha