栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

RLlib

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

RLlib

framework 默认使用 tf1

# tf: TensorFlow (static-graph)
# tf2: TensorFlow 2.x (eager)
# tfe: TensorFlow eager
# torch: PyTorch
--config='{"framework": "tf"}'
--config='{"framework": "tf2"}'
# Enable tracing in eager mode. This greatly improves performance, but
# makes it slightly harder to debug since Python code won't be evaluated
# after the initial eager pass. only possible if framework=tfe.
--config='{"framework": "tf2", "eager_tracing": true}'
--config='{"framework": "tfe"/"tf2"}'
--config='{"framework": "torch"}'
--torch

tf 测试命令

rllib train --run PPO --env PongDeterministic-v4 --checkpoint-freq 100 
    --config '{"framework": "tf", "num_workers": 8, "num_gpus": 1}'

pytorch 测试命令

rllib train --run PPO --env PongDeterministic-v4 --checkpoint-freq 100 
    --config '{"framework": "torch", "num_workers": 8, "num_gpus": 1}'

tensorboard 可视化

tensorboard --logdir=~/ray_results --port 80

模型评估

rllib rollout 
    ~/ray_results/default/PPO_PongDeterministic-v4_0upjmdgr0/checkpoint_1/checkpoint-1 
    --run PPO --env PongDeterministic-v4 --steps 10000
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/467683.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号