Skip to content

Visuals-AI/gym-course-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gym-course-exercises

OpenAI Gym 课程练习笔记


0x00 课程资源

0x10 环境搭建

详细可参考配套教程《「Gym 课程笔记 01」环境搭建与基本概念

0x11 安装 conda(管理 python 虚拟环境)

  1. 安装 miniconda
  2. 把 conda 安装目录下的 Scripts 目录添加到 Path 环境变量
  3. 初始化终端 conda init powershell (powershell 应更改为你当前使用的终端类型)
  4. 查看 CUDA 版本: nvidia-smi
  5. pytorch 官网,生成 RL 环境的安装命令
  6. 执行生成的命令、在 conda 中安装 pytroch, 如命令为: conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
  7. 安装 swig
  8. 把 swig 的安装目录添加到 Path 环境变量

0x12 创建 Gym 虚拟环境

  • 创建名为 RL_GYM 的 python3 虚拟环境: conda create -n RL_GYM python=3.11.5
  • 激活并切换到 RL_GYM 环境: conda activate RL_GYM (每次退出终端后需要重新激活)
  • 安装 Gym 依赖: pip install -r requirements.txt

0x20 课程练习

0x21 Classic Control

课程 代码 笔记
Acrobot code Link
Cart Pole code Link
Mountain Car Continuous code Link
Mountain Car code Link

0x22 TODO

TODO

Releases

No releases published

Packages

No packages published

Languages