algorithms package¶
Subpackages¶
- algorithms.AGen package
- algorithms.RL_Algorithm package
- Subpackages
- algorithms.RL_Algorithm.GAIL package
- algorithms.RL_Algorithm.optimizers package
- Subpackages
- algorithms.RL_Algorithm.optimizers.utils package
- Submodules
- algorithms.RL_Algorithm.optimizers.utils.math module
- algorithms.RL_Algorithm.optimizers.utils.replay_memory module
- algorithms.RL_Algorithm.optimizers.utils.tools module
- algorithms.RL_Algorithm.optimizers.utils.torch module
- algorithms.RL_Algorithm.optimizers.utils.zfilter module
- Module contents
- algorithms.RL_Algorithm.optimizers.utils package
- Submodules
- algorithms.RL_Algorithm.optimizers.trpo module
- Module contents
- Subpackages
- Submodules
- algorithms.RL_Algorithm.utils module
- Module contents
- Subpackages
- algorithms.dataset package
- algorithms.distribution package
- algorithms.policy package
Submodules¶
algorithms.utils module¶
-
algorithms.utils.
build_baseline
(args, env)[source]¶ - Parameters
args – args for building baseline
env – env
- Returns
baseline model object
-
algorithms.utils.
build_ngsim_env
(args, n_veh=1, alpha=0.001)[source]¶ - Parameters
args – args for building the env
n_veh – n vehicles in one episode
- Returns
env, trajectory information, lower bound and higher bound for action space
-
algorithms.utils.
build_policy
(args, env, mode: int = 0)[source]¶ - Parameters
args – args to build policy
env – env
mode – 0 for training, 1 for testing
- Returns
a policy model object
-
algorithms.utils.
build_reward_handler
(args, writer=None)[source]¶ - Parameters
args – args for building reward handler
writer – None
- Returns
a reward handler
-
algorithms.utils.
load_params
(filepath)[source]¶ - Parameters
filepath – file path to load parameters
- Returns
the loaded parameters