mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[rllib] Add n-step Q learning for DQN (#1439)
* n-step * add sample adjustm * Oops * fix nstep * metric adjustment * Sat Jan 20 23:30:34 PST 2018 * Sun Jan 21 16:40:46 PST 2018 * Mon Jan 22 22:24:57 PST 2018
This commit is contained in:
@@ -184,7 +184,7 @@ environment to be configured. The return type should be an `OpenAI gym.Env <http
|
||||
|
||||
def env_creator(env_config):
|
||||
import gym
|
||||
gym.make("CartPole-v0") # or return your own custom env
|
||||
return gym.make("CartPole-v0") # or return your own custom env
|
||||
|
||||
env_creator_name = "custom_env"
|
||||
register_env(env_creator_name, env_creator)
|
||||
|
||||
Reference in New Issue
Block a user