Commit
·
8fe9b43
1
Parent(s):
b116166
Update evaluation.py
Browse files- evaluation.py +1 -1
evaluation.py
CHANGED
|
@@ -109,7 +109,7 @@ def compute_mse(predictions, labels):
|
|
| 109 |
|
| 110 |
# get size of the golden labels list and of
|
| 111 |
# the valid predictions array
|
| 112 |
-
labels_size =
|
| 113 |
valid_predictions_size = idx[0].size
|
| 114 |
|
| 115 |
# only compute mse if valid score predictions were generated,
|
|
|
|
| 109 |
|
| 110 |
# get size of the golden labels list and of
|
| 111 |
# the valid predictions array
|
| 112 |
+
labels_size = np.array(labels).size
|
| 113 |
valid_predictions_size = idx[0].size
|
| 114 |
|
| 115 |
# only compute mse if valid score predictions were generated,
|