Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2.52 KB

README.md

File metadata and controls

58 lines (42 loc) · 2.52 KB

gym-Prescan Python 3.6 Matlab R2017b Prescan 8.5.0

Developed by @MohammadRaziei

Files & Folders :

Standard test:

import gym, gym_prescan

env_dict = {
    'id':       'prescan-without-matlabengine-v0',
    'host':     '172.21.217.140',
    'verbose':  True,
    'nget':     152
}
env = gym.make(**env_dict)
for i_episode in range(20):
    observation = env.reset()
    for t in range(100):
        env.render()
        print(observation)
        action = env.action_space.sample()
        observation, reward, done, info = env.step(action)
        if done:
            print("Episode finished after {} timesteps".format(t+1))
            break
env.close()

Explanation:

  • 'id' must be 'prescan-v0' or 'prescan-without-matlabengine-v0'
  • 'host' can be ignored if you have local run ('host' takes 'localhost' as default.)
  • if 'verbose' took True as value, logs are allowed to be printed in terminal.