File size: 498 Bytes
a8639ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from sklearn.metrics import f1_score

print("imported!")
exit()
from copy import deepcopy
import numpy as np

# y_true = [0] * 50 + [0] * 5 + [0] * 10 + [1] * 8 + [1] * 40 + [1] * 12+ [2] * 5 + [2] * 7 + [2] * 50
# y_pred = [0] * 50 + [1] * 5+ [2] * 10 + [0] * 8 + [1] * 40+ [2] * 12+ [0] * 5 + [1] * 7 + [2] * 50

# y_true = deepcopy(y_true)
# y_pred = deepcopy(y_pred)

# print(y_true)


# y_true = np.array(y_true)
# y_pred = np.array(y_pred)
# print(f1_score(y_true, y_pred, average='sample'))