mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
21 lines
519 B
Python
21 lines
519 B
Python
"""Registry of algorithm names for `rllib train --run=<alg_name>`"""
|
|
|
|
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
|
|
|
|
def _import_random_agent():
|
|
from ray.rllib.contrib.random_agent.random_agent import RandomAgent
|
|
return RandomAgent
|
|
|
|
|
|
def _import_maddpg():
|
|
from ray.rllib.contrib import maddpg
|
|
return maddpg.MADDPGTrainer
|
|
|
|
|
|
CONTRIBUTED_ALGORITHMS = {
|
|
"contrib/RandomAgent": _import_random_agent,
|
|
"contrib/MADDPG": _import_maddpg,
|
|
}
|