-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (27 loc) · 1002 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
import argparse
from src.tfidf import execute_tfidf
from src.pkl import load_results
from src.evaluations import launch_all_evaluations, evaluate_vectorial_function
from src.read_file import read_requests
from src.requests import Request
from ui.ui import launch_ui
from src.boolean_model import boolean_model
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument('-e', '--evaluations', action='store_true', help='launch evaluations')
parser.add_argument('-t', '--test', action='store_true', help='test function')
return parser.parse_args()
def main():
args = parse_arguments()
if args.evaluations:
read_requests()
inverse_weight_matrix, inverse_structure = load_results()
launch_all_evaluations(inverse_weight_matrix)
elif args.test:
inverse_weight_matrix, inverse_structure = load_results()
svd = boolean_model('Algebraic')
import pdb; pdb.set_trace()
else:
launch_ui()
if __name__ == '__main__':
main()