-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_images.py
78 lines (75 loc) · 1.96 KB
/
create_images.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from functions import save_figure
dfs = [
"train_baseline_InceptionV3_added_metrics",
"train_baseline_ResNet50V2_added_metrics",
"train_baseline_ViT_added_metrics",
"supcon_encoder_InceptionV3_added_metrics",
"supcon_encoder_ResNet50V2_added_metrics",
"supcon_encoder_ViT_added_metrics",
]
for df in dfs:
# Loss and accuracy
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1="loss",
column1_name="Loss",
column2=None,
column2_name="",
img_width=1000,
img_height=600,
img_name=f"{df}_loss",
)
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1=None,
column1_name="",
column2="accuracy",
column2_name="Accuracy",
img_width=1000,
img_height=600,
img_name=f"{df}_accuracy",
)
# F1 and AUC
# Loss and accuracy
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1=None,
column1_name="",
column2="auc",
column2_name="AUC",
img_width=1000,
img_height=600,
img_name=f"{df}_auc",
)
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1="f1",
column1_name="F1",
column2=None,
column2_name="",
img_width=1000,
img_height=600,
img_name=f"{df}_f1",
)
# Sensitivity and Specifity
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1="recall",
column1_name="Sensitivity",
column2="specificity",
column2_name="Specificity",
img_width=1000,
img_height=600,
img_name=f"{df}_SS",
)
# Recall and Precision
save_figure(
hist_filelocation=f"CSVLogger/{df}.csv",
column1="recall",
column1_name="Recall",
column2="precision",
column2_name="Precision",
img_width=1000,
img_height=600,
img_name=f"{df}_PR",
)