Skip to content

MohammadRaziei/gym-Prescan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published