-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.py
47 lines (32 loc) · 882 Bytes
/
main.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
"""
@Author: Conghao Wong
@Date: 2022-06-20 15:28:14
@LastEditors: Conghao Wong
@LastEditTime: 2022-07-07 20:09:22
@Description: file content
@Github: https://github.com/cocoon2wong
@Copyright 2022 Conghao Wong, All Rights Reserved.
"""
import sys
import codes as C
import vertical
def main(args: list[str]):
_args = C.args.BaseArgTable(terminal_args=args)
model = _args.model
# ---------------
# Vertical models
# ---------------
if model in ['va', 'agent']:
s = vertical.VA
elif model == 'vb':
s = vertical.VB
elif model == 'V':
s = vertical.V
elif model == 'mv':
s = vertical.MinimalV
else:
raise NotImplementedError(
'model type `{}` is not supported.'.format(model))
s(terminal_args=args).train_or_test()
if __name__ == '__main__':
main(sys.argv)