forked from ArmenSl/Rules-Extraction-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
37 lines (30 loc) · 997 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
import sys
import subprocess
def entrainement_model():
print("Spécifier votre choix: breast, diabetes, heart, derm ou covid")
x = input()
subprocess.run(["python", "search.py", x])
def lancement_anchor():
print("Spécifier votre choix: breast, diabetes, heart, derm ou covid")
x = input()
subprocess.run(["python", "Methodes/test_anchor.py", x])
def lancement_lore():
print("Spécifier votre choix: breast, diabetes, heart, derm ou covid")
x = input()
subprocess.run(["python", "Methodes/test_lore.py", x])
match input("Voulez vous entrainer le modele ou non? Y/N "):
case "Y":
entrainement_model()
case "N":
print("Choisir si vous voulez lancer Anchor ou Lore? A/L ")
x = input()
if x=="A":
lancement_anchor()
elif x=="L":
lancement_lore()
else:
print("Mauvais arguments")
exit()
case _:
print("Mauvais arguments")
exit()