1 Star 0 Fork 0

焦建军/RLRoboticAssembly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
copy_to_rllib.py 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hui Xylo Li 提交于 2020-02-12 11:09 . initial commit
# rllib patch
from shutil import copyfile
import os
# show all the stats in terminal, not just one third
dqn_src = "copy_to_rllib/agents/dqn/dqn.py"
dqn_dst = "../agents/dqn/dqn.py"
copyfile(dqn_src, dqn_dst)
# human demonstrations & dynamic experience replay
async_src = "copy_to_rllib/optimizers/async_replay_optimizer.py"
async_dst = "../optimizers/async_replay_optimizer.py"
copyfile(async_src, async_dst)
buffer_src = "copy_to_rllib/optimizers/replay_buffer.py"
buffer_dst = "../optimizers/replay_buffer.py"
copyfile(buffer_src, buffer_dst)
# calculate the custom metrics for one transition,
# not the historic transitions designed by Ray
metrics_src = "copy_to_rllib/evaluation/metrics.py"
metrics_dst = "../evaluation/metrics.py"
copyfile(metrics_src, metrics_dst)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiaojianjun-com/RLRoboticAssembly.git
git@gitee.com:jiaojianjun-com/RLRoboticAssembly.git
jiaojianjun-com
RLRoboticAssembly
RLRoboticAssembly
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385