Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement MDNRNN using new gym. (#253)
Summary: Using our new gym, test MDNRNN feature importance/sensitivity. Also, train DQN to play POMDP string game with states embedded with MDNRNN. This is in preparation to nuke old gym folder. Pull Request resolved: #253 Differential Revision: D21385499 Pulled By: kaiwenw fbshipit-source-id: a4fa462ecdd5352e4cbb7cbb956517fcdf0f1502
- Loading branch information
1 parent
cd71aca
commit c5b5666
Showing
48 changed files
with
1,292 additions
and
1,505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. | ||
|
||
from .dynamics.linear_dynamics import LinDynaEnv # noqa | ||
from .env_factory import EnvFactory | ||
from .pomdp.pocman import PocManEnv # noqa | ||
from .pomdp.string_game import StringGameEnv # noqa | ||
from .utils import register_if_not_exists | ||
|
||
|
||
__all__ = ["EnvFactory"] | ||
|
||
|
||
######### Register classes below ########## | ||
|
||
CUR_MODULE = "reagent.gym.envs" | ||
ENV_CLASSES = [ | ||
("Pocman-v0", ".pomdp.pocman:PocManEnv"), | ||
("StringGame-v0", ".pomdp.string_game:StringGameEnv"), | ||
("LinearDynamics-v0", ".dynamics.linear_dynamics:LinDynaEnv"), | ||
] | ||
|
||
for env_name, rel_module_path in ENV_CLASSES: | ||
full_module_path = CUR_MODULE + rel_module_path | ||
register_if_not_exists(id=env_name, entry_point=full_module_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.