-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_experiments.py
More file actions
34 lines (24 loc) · 891 Bytes
/
run_experiments.py
File metadata and controls
34 lines (24 loc) · 891 Bytes
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
import argparse
from main import main_som_classifier, main_dgcytof, main_fcnn, main_gatemeclass, main_som_parameter_tuning
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Run the scripts for generating results.')
methods = ['som', 'dgcytof', 'fcnn', 'gatemeclass', 'som_parameter_tuning']
# Add the file argument
parser.add_argument(
'-m', '--method',
type=str,
required=True,
choices=methods,
help=f'Select the method to run. Choices: {', '.join(methods)}'
)
# Parse the arguments
args = parser.parse_args()
# Run script
method_to_script = {
'som': main_som_classifier,
'dgcytof': main_dgcytof,
'fcnn': main_fcnn,
'gatemeclass': main_gatemeclass,
'som_parameter_tuning': main_som_parameter_tuning
}
method_to_script[args.method]()