本文整理匯總了Python中atari_py.list_games方法的典型用法代碼示例。如果您正苦於以下問題:Python atari_py.list_games方法的具體用法?Python atari_py.list_games怎麽用?Python atari_py.list_games使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類atari_py
的用法示例。
在下文中一共展示了atari_py.list_games方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: start
# 需要導入模塊: import atari_py [as 別名]
# 或者: from atari_py import list_games [as 別名]
def start(self):
import gym # lazy-loading
gym.logger.set_level(40) # avoid annoying internal warn messages
self._env = gym.make(self.id)
try:
import atari_py
from reaver.envs.atari import AtariPreprocessing
except ImportError:
return
if any([env_name in self.id.lower() for env_name in atari_py.list_games()]):
self._env = AtariPreprocessing(self._env.env)
self.make_specs(running=True)
示例2: get_games_list
# 需要導入模塊: import atari_py [as 別名]
# 或者: from atari_py import list_games [as 別名]
def get_games_list():
return atari_py.list_games()
示例3: register_atari
# 需要導入模塊: import atari_py [as 別名]
# 或者: from atari_py import list_games [as 別名]
def register_atari():
# If atari envs are available, re-register them with the OpenAI Baselines
# wrapper stack.
for game in atari_py.list_games():
name = ''.join([g.capitalize() for g in game.split('_')])
for version in ('v0', 'v4'):
register(
id='{}Baselines-{}'.format(name, version),
entry_point=partial(
make_baselines,
env_id='{}NoFrameskip-{}'.format(name, version),
))