-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path__init__.py
51 lines (48 loc) · 1.18 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from .common import Algorithm, AlgorithmConfig
from .iddpg import Iddpg, IddpgConfig
from .ippo import Ippo, IppoConfig
from .iql import Iql, IqlConfig
from .isac import Isac, IsacConfig
from .maddpg import Maddpg, MaddpgConfig
from .mappo import Mappo, MappoConfig
from .masac import Masac, MasacConfig
from .qmix import Qmix, QmixConfig
from .vdn import Vdn, VdnConfig
classes = [
"Iddpg",
"IddpgConfig",
"Ippo",
"IppoConfig",
"Iql",
"IqlConfig",
"Isac",
"IsacConfig",
"Maddpg",
"MaddpgConfig",
"Mappo",
"MappoConfig",
"Masac",
"MasacConfig",
"Qmix",
"QmixConfig",
"Vdn",
"VdnConfig",
]
# A registry mapping "algoname" to its config dataclass
# This is used to aid loading of algorithms from yaml
algorithm_config_registry = {
"mappo": MappoConfig,
"ippo": IppoConfig,
"maddpg": MaddpgConfig,
"iddpg": IddpgConfig,
"masac": MasacConfig,
"isac": IsacConfig,
"qmix": QmixConfig,
"vdn": VdnConfig,
"iql": IqlConfig,
}