Open hokhay opened 1 year ago
The training pipeline needs to know about "the agent is off-policy or on-policy DRL algorithm".
self.if_off_policy = agent.if_off_policy
change this line to
name = agent_class.__name__
self.if_off_policy = all((name.find('PPO') == -1, name.find('A2C') == -1))
It means that PPO and A2C is on-policy (self.if_off_policy = False
)
Hi all,
I just install and run the main.py for the first time. I bump on to the
Arguments(agent_class=agent)
error then I changeagent_class
toagent
. After this I get another error as the following:I notice that
self.if_off_policy
is assigned one line after this error line. How can I solve this problemThanks