Skip to content

Commit e20f16f

Browse files
committed
Changed the shape of loss
1 parent 5532411 commit e20f16f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

semevaltasks/classification/semeval_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ def predict(self, to_predict):
13411341
nb_eval_steps = 0
13421342
preds = np.empty((len(to_predict), self.num_labels))
13431343

1344-
loss = np.empty((len(to_predict), self.num_labels))
1344+
loss = np.empty((len(to_predict), 1))
13451345

13461346
out_label_ids = np.empty((len(to_predict)))
13471347

0 commit comments

Comments
 (0)