mirror of
https://github.com/wassname/DeepRL.git
synced 2026-10-29 12:40:58 +08:00
Update ACVP
This commit is contained in:
1 parent
3254809162
commit
af1cc11669
6 files changed
+113
-118
No files matched your search
+4
-1
@@ -57,10 +57,13 @@ class LunarLander(BasicTask):
|
||||
|
||||
class PixelAtari(BasicTask):
|
||||
def __init__(self, name, seed=0, log_dir=None, max_steps=sys.maxsize,
|
||||
frame_skip=4, history_length=4):
|
||||
frame_skip=4, history_length=4, dataset=False):
|
||||
BasicTask.__init__(self, max_steps)
|
||||
env = make_atari(name, frame_skip)
|
||||
env.seed(seed)
|
||||
if dataset:
|
||||
env = DatasetEnv(env)
|
||||
self.dataset_env = env
|
||||
if log_dir is not None:
|
||||
mkdir(log_dir)
|
||||
env = Monitor(env, '%s/%s' % (log_dir, uuid.uuid1()))
|
||||
|
||||
Reference in new issue
Block a user