浏览代码

Add push curriculum

/tag-0.2.0
Arthur Juliani 7 年前
当前提交
d1b81a32
共有 6 个文件被更改,包括 13 次插入3 次删除
  1. 2
      python/ppo.py
  2. 2
      python/unityagents/environment.py
  3. 2
      python/curricula/test.json
  4. 10
      python/curricula/push.json
  5. 0
      /python/curricula/test.json

2
python/ppo.py


--train Whether to train model, or only run inference [default: False].
--summary-freq=<n> Frequency at which to save training statistics [default: 10000].
--save-freq=<n> Frequency at which to save model [default: 50000].
--gamma=<n> Reward discount rate [default: 0.99].
--gamma=<n> Reward discount rate [default: 0.995].
--lambd=<n> Lambda parameter for GAE [default: 0.95].
--time-horizon=<n> How many steps to collect per agent before adding to buffer [default: 2048].
--beta=<n> Strength of entropy regularization [default: 1e-3].

2
python/unityagents/environment.py


.format(self._curriculum.get_lesson_number(),
', '.join([str(x)+' -> '+str(config[x]) for x in config])))
else:
logger.info("\nEpisode Reset. In Lesson {0} : \t{1}"
logger.info("\nAcademy Reset. In Lesson {0} : \t{1}"
.format(self._curriculum.get_lesson_number(),
', '.join([str(x)+' -> '+str(config[x]) for x in config])))
if self._loaded:

2
python/curricula/test.json


"param2" : [100, 50, 20, 15],
"param3" : [0.2, 0.3, 0.7, 0.9]
}
}
}

10
python/curricula/push.json


{
"measure" : "progress",
"thresholds" : [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
"min_lesson_length" : 1,
"signal_smoothing" : false,
"parameters" :
{
"object_size" : [2.0, 1.9, 1.8, 1.7, 1.6, 1.5, 1.4, 1.3, 1.2, 1.1]
}
}

/python/curriculum.json → /python/curricula/test.json

正在加载...
取消
保存