首页 > 其他 > 详细

rlpyt(Deep Reinforcement Learning in PyTorch)

时间:2020-08-21 16:09:23      阅读:72      评论:0      收藏:0      [点我收藏+]

Github:https://github.com/astooke/rlpyt

Introduction:https://baijiahao.baidu.com/s?id=1646437256939374418&wfr=spider&for=pc

Documentation:https://rlpyt.readthedocs.io/en/latest/

 

Installation

  1. Clone this repository to the local machine.

  2. Install the anaconda environment appropriate for the machine.

conda env create -f linux_[cpu|cuda9|cuda10].yml
source activate rlpyt
  1. Either A) Edit the PYTHONPATH to include the rlpyt directory, or B) Install as editable python package
#A
export PYTHONPATH=path_to_rlpyt:$PYTHONPATH

#B
pip install -e .
  1. Install any packages / files pertaining to desired environments (e.g. gym, mujoco). Atari is included.
pip install gym

Hint: for easy access, add the following to your ~/.bashrc (might substitute conda for source).

alias rlpyt="source activate rlpyt; cd path_to_rlpyt"

rlpyt/example/atari_dqn_async_cpu.py:
设置n_socket=1;
rlpyt/example/atari_dqn_async_gpu.py:设置n_socket=1;
rlpyt/example/atari_dqn_async_serial.py:设置n_socket=1;

rlpyt(Deep Reinforcement Learning in PyTorch)

原文:https://www.cnblogs.com/lucifer1997/p/13541041.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!