cups-rl
cups-rl copied to clipboard
make random action in rainbow
Hi, may I ask is it possible to make a sequence of random actions by adding a line of code in main.py of Rainbow?
instead of line 161 action = dqn.act(state)
you can put an if statement and do
action = env.action_space.sample()
for whatever condition you want. But not sure why you would want to do this since rainbow has roughly random actions at the start of training.
If rainbow keeps doing the same action you should tune your noisy layer parameters.
Thank you. It is because initially my idea is to reset the agent's position in the room once certain conditions are met. However, since the currently wrapper does not support teleport, I compromised my strategy. Instead of returning to the original position, I make the agent take a random walk so that it has no way of tracing back to its position when the conditions are met in an analytic way. But if you know an alternative of resetting the agent's position do let me know. Thanks!