mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:10:40 +08:00
1475600c81
* removed ddpg2 * removed ddpg2 from codebase * added tests used in ddpg vs ddpg2 comparison * added notes about training timesteps to yaml files * removed ddpg2 yaml files * removed unnecessary configs from yaml files * removed unnecessary configs from yaml files * moved pendulum, mountaincarcontinuous, and halfcheetah tests to tuned_examples * moved pendulum, mountaincarcontinuous, and halfcheetah tests to tuned_examples * added more configuration details to yaml files * removed random starts from halfcheetah
28 lines
966 B
Python
28 lines
966 B
Python
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
|
|
# Note: do not introduce unnecessary library dependencies here, e.g. gym.
|
|
# This file is imported from the tune module in order to register RLlib agents.
|
|
from ray.tune.registry import register_trainable
|
|
|
|
from ray.rllib.utils.policy_graph import PolicyGraph
|
|
from ray.rllib.utils.tf_policy_graph import TFPolicyGraph
|
|
from ray.rllib.utils.common_policy_evaluator import CommonPolicyEvaluator
|
|
from ray.rllib.optimizers.sample_batch import SampleBatch
|
|
|
|
|
|
def _register_all():
|
|
for key in ["PPO", "ES", "DQN", "APEX", "A3C", "BC", "PG", "DDPG",
|
|
"APEX_DDPG", "__fake", "__sigmoid_fake_data",
|
|
"__parameter_tuning"]:
|
|
from ray.rllib.agent import get_agent_class
|
|
register_trainable(key, get_agent_class(key))
|
|
|
|
|
|
_register_all()
|
|
|
|
__all__ = [
|
|
"PolicyGraph", "TFPolicyGraph", "CommonPolicyEvaluator", "SampleBatch"
|
|
]
|