-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
74 Policy evaluation and training cli (rllib) #85
base: main
Are you sure you want to change the base?
Conversation
@@ -192,8 +192,6 @@ def __init__(self, | |||
self.num_resets = 0 | |||
self.distance_map = DistanceMap(self.agents, self.height, self.width) | |||
|
|||
self.action_space = [5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this removal safe? Remove from flatland.core.Environment.env
as well or redefine there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does mean removal safe - remove from ... ? You like to delete the file or just action_space ?
flatland/ml/observations/flatten_tree_observation_for_rail_env.py
Outdated
Show resolved
Hide resolved
daec963
to
3f903ca
Compare
flatland/ml/observations/flatten_tree_observation_for_rail_env.py
Outdated
Show resolved
Hide resolved
self.env_renderer = RenderTool(wrap) | ||
|
||
self.action_space: gym.spaces.Dict = spaces.Dict({ | ||
# TODO document why str is necessary - is it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO document why str is necessary - is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str(i) === i don't understand this !!!
Do you like to get for each agent a Discrete(5) : |agents| x |Actions space|
# TODO dqn not working: rewards = scipy.signal.lfilter([1], [1, -gamma], raw_rewards[::-1], axis=0)[ | ||
# ~~~~~~~~~~~^^^^^^ | ||
# TypeError: unhashable type: 'slice' | ||
# "DQN", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO dqn not working
Co-authored-by: Serge Croisé <[email protected]>
|
||
|
||
# defaults from Flatland 3 Round 2 Test_0, see https://flatland.aicrowd.com/challenges/flatland3/envconfig.html | ||
def env_creator(n_agents=7, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use env_generator
to use same naming as for rail and line generators?
flatland/ml/ray/wrappers.py
Outdated
return RayMultiAgentWrapper(wrap, render_mode) | ||
|
||
|
||
def ray_env_creator(render_mode: Optional[str] = None, **kwargs) -> RayMultiAgentWrapper: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same questions as above regarding naming _creator
or _generator
@@ -192,8 +192,6 @@ def __init__(self, | |||
self.num_resets = 0 | |||
self.distance_map = DistanceMap(self.agents, self.height, self.width) | |||
|
|||
self.action_space = [5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does mean removal safe - remove from ... ? You like to delete the file or just action_space ?
self.env_renderer = RenderTool(wrap) | ||
|
||
self.action_space: gym.spaces.Dict = spaces.Dict({ | ||
# TODO document why str is necessary - is it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str(i) === i don't understand this !!!
Do you like to get for each agent a Discrete(5) : |agents| x |Actions space|
Changes
pyproject.toml
, newrequirements-ml.txt
and slimmerrequirements[-dev].txt
, keep coregym
free.flatland.ml
moduletests.ml
(tests becomes a Python module)flatland.contrib
s)Related issues
Closes #74.
Fixes #23.
Closes #75
Checklist
docs
folder for relevant behavior changes. If you made important user-facingchanges, describe them under the
[Unreleased]
tag inCHANGELOG.md
.pyproject.toml
file.Requirement files have been updated by running
tox -e requirements
.required to run successfully.
CONTRIBUTING.md
are followed.