mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
[RLlib] Add DQN SoftQ learning test case. (#12712)
This commit is contained in:
parent
e3b5deb741
commit
deb33bce84
2 changed files with 18 additions and 0 deletions
|
@ -172,6 +172,7 @@ py_test(
|
|||
data = [
|
||||
"tuned_examples/dqn/cartpole-simpleq.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn-softq.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn-param-noise.yaml",
|
||||
],
|
||||
args = ["--yaml-dir=tuned_examples/dqn"]
|
||||
|
@ -186,6 +187,7 @@ py_test(
|
|||
data = [
|
||||
"tuned_examples/dqn/cartpole-simpleq.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn-softq.yaml",
|
||||
"tuned_examples/dqn/cartpole-dqn-param-noise.yaml",
|
||||
],
|
||||
args = ["--yaml-dir=tuned_examples/dqn", "--torch"]
|
||||
|
|
16
rllib/tuned_examples/dqn/cartpole-dqn-softq.yaml
Normal file
16
rllib/tuned_examples/dqn/cartpole-dqn-softq.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
cartpole-dqn:
|
||||
env: CartPole-v0
|
||||
run: DQN
|
||||
stop:
|
||||
episode_reward_mean: 150
|
||||
timesteps_total: 100000
|
||||
config:
|
||||
# Works for both torch and tf.
|
||||
framework: tf
|
||||
model:
|
||||
fcnet_hiddens: [64]
|
||||
fcnet_activation: linear
|
||||
n_step: 3
|
||||
exploration_config:
|
||||
type: SoftQ
|
||||
temperature: 0.5
|
Loading…
Add table
Reference in a new issue