Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
neurips-2021-the-nethack-challenge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nethack
neurips-2021-the-nethack-challenge
Commits
3265daa3
Commit
3265daa3
authored
3 years ago
by
Eric Hambro
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo.
parent
d1ac97bd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
envs/batched_env.py
+1
-1
1 addition, 1 deletion
envs/batched_env.py
local_evaluation.py
+2
-2
2 additions, 2 deletions
local_evaluation.py
rollout.py
+2
-2
2 additions, 2 deletions
rollout.py
with
5 additions
and
5 deletions
envs/batched_env.py
+
1
−
1
View file @
3265daa3
...
...
@@ -3,7 +3,7 @@ import numpy as np
from
tqdm
import
trange
from
collections.abc
import
Iterable
class
Ba
c
tchedEnv
:
class
BatchedEnv
:
def
__init__
(
self
,
env_make_fn
,
num_envs
=
32
):
"""
Creates multiple copies of the environment with the same env_make_fn function
...
...
This diff is collapsed.
Click to expand it.
local_evaluation.py
+
2
−
2
View file @
3265daa3
...
...
@@ -8,7 +8,7 @@
from
submission_agent
import
SubmissionConfig
,
LocalEvaluationConfig
from
rollout
import
run_batched_rollout
from
nethack_baselines.utils.batched_env
import
Ba
c
tchedEnv
from
nethack_baselines.utils.batched_env
import
BatchedEnv
# Ideally you shouldn't need to change anything below
...
...
@@ -23,7 +23,7 @@ def evaluate():
Agent
=
SubmissionConfig
.
Submision_Agent
evaluation_env_fn
=
add_evaluation_wrappers_fn
(
submission_env_make_fn
)
batched_env
=
Ba
c
tchedEnv
(
env_make_fn
=
evaluation_env_fn
,
batched_env
=
BatchedEnv
(
env_make_fn
=
evaluation_env_fn
,
num_envs
=
num_envs
)
num_envs
=
batched_env
.
num_envs
...
...
This diff is collapsed.
Click to expand it.
rollout.py
+
2
−
2
View file @
3265daa3
...
...
@@ -9,7 +9,7 @@
from
tqdm
import
tqdm
import
numpy
as
np
from
envs.batched_env
import
Ba
c
tchedEnv
from
envs.batched_env
import
BatchedEnv
from
submission_config
import
SubmissionConfig
NUM_ASSESSMENTS
=
512
...
...
@@ -66,7 +66,7 @@ if __name__ == "__main__":
NUM_PARALLEL_ENVIRONMENTS
=
SubmissionConfig
.
NUM_PARALLEL_ENVIRONMENTS
Agent
=
SubmissionConfig
.
Submision_Agent
batched_env
=
Ba
c
tchedEnv
(
batched_env
=
BatchedEnv
(
env_make_fn
=
submission_env_make_fn
,
num_envs
=
NUM_PARALLEL_ENVIRONMENTS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment