-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable_init.py
40 lines (31 loc) · 1.36 KB
/
variable_init.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
class model_results:
def __init__(self):
self.train_total_loss = None
self.train_class_1_loss = None
self.train_class_2_loss = None
self.train_class_final_loss = None
self.train_rate_loss = None
self.val_total_loss = None
self.val_class_1_loss = None
self.val_class_2_loss = None
self.val_class_final_loss = None
self.val_rate_loss = None
self.test_total_loss = None
self.test_class_1_loss = None
self.test_class_2_loss = None
self.test_class_final_loss = None
self.test_rate_loss = None
self.bench_total_loss = None
self.bench_class_1_loss = None
self.bench_class_2_loss = None
self.bench_class_final_loss = None
self.bench_rate_loss = None
def correlation_init(self,
test_pearson,
test_spearman,
bench_pearson,
bench_spearman):
self.test_pearson = test_pearson
self.test_spearman = test_spearman
self.bench_pearson = bench_pearson
self.bench_spearman = bench_spearman