-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
57 lines (44 loc) · 2.3 KB
/
main.py
File metadata and controls
57 lines (44 loc) · 2.3 KB
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
52
53
54
55
56
57
from Shared_Utilities import clear_terminal, Colors
from AnalisiDataset import dataset_overview_menu
from Models import confronti, chose_model
# -- -- # -- -- # -- -- # -- -- # -- -- # -- -- # -- -- #
def interactiveMenu():
'''Funzione per l'avvio del menu interattivo.'''
scelta = -1 # scelta dell'utente
while scelta != 0:
clear_terminal()
printLogo()
printChoiches()
scelta = input()
if scelta == "0":
clear_terminal()
return
elif scelta == "1":
dataset_overview_menu()
elif scelta == "2":
chose_model()
elif scelta == "3":
confronti()
# -- -- # -- -- # -- -- # -- -- # -- -- # -- -- # -- -- #
def printLogo():
'''Funzione per stampare il logo del progetto.'''
print(f"▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄")
print(f"▀▄ {Colors.BLUE}▄▄ ▄▄ ▄▄ {Colors.RESET} ▀▄")
print(f"▀▄ {Colors.BLUE}███▄ ▄███ ██ {Colors.RESET} ▀▄")
print(f"▀▄ {Colors.BLUE}██ ▀█▄ ▄█▀ ██ ██ {Colors.RESET} ▀▄")
print(f"▀▄ {Colors.BLUE}██ ▀█▀ ██ ██ {Colors.RESET} ▀▄")
print(f"▀▄ {Colors.BLUE}██ ██ ██▄▄▄▄▄▄{Colors.RESET} ▀▄")
print(f"▀▄ {Colors.BLUE}▀▀ ▀▀ ▀▀▀▀▀▀▀▀{Colors.RESET} ▀▄")
print(f"▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄")
print("\n")
# -- -- # -- -- # -- -- # -- -- # -- -- # -- -- # -- -- #
def printChoiches():
'''Funzione per stampare le scelte possibili per l'utente.'''
print("Scegliere un'opzione:")
print(f"{Colors.BLUE}[1]{Colors.RESET} Analisi del dataset")
print(f"{Colors.BLUE}[2]{Colors.RESET} Addestramento di un classificatore")
print(f"{Colors.BLUE}[3]{Colors.RESET} Confronto tra classificatori")
print(f"{Colors.RED}[0]{Colors.RESET} Esci dal programma")
# -- -- # -- -- # -- -- # -- -- # -- -- # -- -- # -- -- #
if __name__ == '__main__':
interactiveMenu()