AMR-KELEG commited on
Commit
31760f5
·
1 Parent(s): e61309d

Fix the positive label id

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -120,7 +120,7 @@ precision_scores = [
120
  y_true=gold_matrix[:, i],
121
  y_pred=prediction_matrix[:, i],
122
  average="binary",
123
- pos_label="1",
124
  )
125
  * 100
126
  for i in range(gold_matrix.shape[1])
@@ -130,7 +130,7 @@ recall_scores = [
130
  y_true=gold_matrix[:, i],
131
  y_pred=prediction_matrix[:, i],
132
  average="binary",
133
- pos_label="1",
134
  )
135
  * 100
136
  for i in range(gold_matrix.shape[1])
@@ -140,7 +140,7 @@ f1_scores = [
140
  y_true=gold_matrix[:, i],
141
  y_pred=prediction_matrix[:, i],
142
  average="binary",
143
- pos_label="1",
144
  )
145
  * 100
146
  for i in range(gold_matrix.shape[1])
 
120
  y_true=gold_matrix[:, i],
121
  y_pred=prediction_matrix[:, i],
122
  average="binary",
123
+ pos_label=1,
124
  )
125
  * 100
126
  for i in range(gold_matrix.shape[1])
 
130
  y_true=gold_matrix[:, i],
131
  y_pred=prediction_matrix[:, i],
132
  average="binary",
133
+ pos_label=1,
134
  )
135
  * 100
136
  for i in range(gold_matrix.shape[1])
 
140
  y_true=gold_matrix[:, i],
141
  y_pred=prediction_matrix[:, i],
142
  average="binary",
143
+ pos_label=1,
144
  )
145
  * 100
146
  for i in range(gold_matrix.shape[1])