-
Notifications
You must be signed in to change notification settings - Fork 0
/
ttt.py
42 lines (36 loc) · 1.35 KB
/
ttt.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
from myutil import *
from pprint import pprint
import csv
# USE_TAG = "rel"
USE_TAG = "rel_posi"
# VALIDATION_DATASET = "validation_dataset"
VALIDATION_DATASET = "posi_validation_dataset"
# BATCH_SIZE_FOR_GET_ATTENTION = 1
# EPOCH = 7
EPOCH = 2
BATCH_SIZE = 16
POSITION = "superior"
# output_correct_dir = '../correct_set/'
# correct_PATH ='{}correct_{}_b_{}_e_{}.csv'.format(output_correct_dir, USE_TAG, BATCH_SIZE, EPOCH)
# with open(correct_PATH, 'r') as f:
# reader = csv.reader(f)
# correct_ = [row for row in reader]
# pprint(correct_)
# output_error_dir = '../error_set/'
# error_PATH ='{}error_{}_b_{}_e_{}.csv'.format(output_error_dir, USE_TAG, BATCH_SIZE, EPOCH)
# with open(error_PATH, 'r') as f:
# reader = csv.reader(f)
# error_ = [row for row in reader]
# pprint(error_)
# output_correct_dir = '../correct_set/'
# correct_PATH ='{}correct_{}_{}_b_{}_e_{}.csv'.format(output_correct_dir, POSITION, USE_TAG, BATCH_SIZE, EPOCH)
# with open(correct_PATH, 'r') as f:
# reader = csv.reader(f)
# correct_type = [row for row in reader]
# print(correct_type)
output_error_dir = '../error_set/'
error_PATH ='{}error_{}_{}_b_{}_e_{}.csv'.format(output_error_dir, POSITION, USE_TAG, BATCH_SIZE, EPOCH)
with open(error_PATH, 'r') as f:
reader = csv.reader(f)
error_type = [row for row in reader]
pprint(error_type)