Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 568 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 568 Bytes

channel_jamming_dqn

使用前

  1. 需将环境文件ChannelEnv.pv放到gym的安装目录下。如/usr/local/lib/python3.6/site-packages/gym/envs/classic_control/
  2. 打开1中目录中的__init__.py文件,加入语句: from gym.envs.classic_control.ChannelEnv import ChannelEnv
  3. 进入gym安装目录的gym/gym/envs/打开__init__.py,添加代码: register( id='Channel-v0',
    entry_point='gym.envs.classic_control:ChannelEnv',
    max_episode_steps=200, reward_threshold=100.0, )

文件夹AI_blog下使用python3运行channel1.py