Skip to content

Commit

Permalink
Fixed parametric dqn cartpole config
Browse files Browse the repository at this point in the history
Summary: Use parameters of discrete_dqn_cartpole_v0.json with model_type set to pytorch_parametric_dqn

Reviewed By: badrinarayan, kittipatv

Differential Revision: D20089999

fbshipit-source-id: 43b7f08c552535e5f96847600beafc8b77b65a5a
  • Loading branch information
kaiwenw authored and facebook-github-bot committed Mar 11, 2020
1 parent a2459d3 commit 5a74002
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions ml/rl/test/gym/parametric_dqn_cartpole_v0.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"env": "CartPole-v0",
"model_type": "pytorch_parametric_dqn",
"max_replay_memory_size": 10000,
"use_gpu": true,
"max_replay_memory_size": 20000,
"use_gpu": false,
"rl": {
"gamma": 0.99,
"target_update_rate": 0.1,

"maxq_learning": true,
"epsilon": 0.05,
"temperature": 0.35,
Expand All @@ -17,30 +16,22 @@
"dueling_architecture": false
},
"training": {
"layers": [
-1,
128,
64,
-1
],
"activations": [
"relu",
"relu",
"linear"
],
"minibatch_size": 1024,
"learning_rate": 0.001,
"layers": [-1, 128, 64, -1],
"activations": ["relu", "relu", "linear"],
"minibatch_size": 512,
"learning_rate": 0.01,
"optimizer": "ADAM",
"lr_decay": 0.999
},
"run_details": {
"num_episodes": 200,
"max_steps": 200,
"train_every_ts": 1,
"train_every_ts": 3,
"train_after_ts": 1,
"test_every_ts": 2000,
"test_after_ts": 1,
"test_every_ts": 400,
"test_after_ts": 1000,
"num_train_batches": 1,
"avg_over_num_episodes": 100
"avg_over_num_episodes": 25,
"offline_train_epochs": 7
}
}

0 comments on commit 5a74002

Please sign in to comment.