-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgridSearch.py
More file actions
35 lines (22 loc) · 1.01 KB
/
gridSearch.py
File metadata and controls
35 lines (22 loc) · 1.01 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
from datetime import datetime
from utils.DataLoader import DataLoader
from validation.GridSearch import GridSearch
if __name__ == '__main__':
start = datetime.now()
print("Imported modules", flush=True)
dataLoader = DataLoader("dataset4")
print("data loaded", flush=True)
healthy = dataLoader.getData(["healthy"], ["THCA","LUAD"])
sick = dataLoader.getData(["sick"], ["THCA","LUAD"])
data = dataLoader.getData(["sick", "healthy"], ["THCA","LUAD"])
grid_search = GridSearch(sick, healthy, data)
print("got combined data", flush=True)
table = grid_search.get_table_all_at_once()
print("table creation done", flush=True)
grid_search.save_table_to_disk(table, "grid_search_all_at_once_big")
print("saved table to file", flush=True)
table = grid_search.get_table_one_vs_rest()
print("table creation done", flush=True)
grid_search.save_table_to_disk(table, "grid_search_one_vs_rest_big")
print("saved table to file", flush=True)
print(datetime.now() - start)