Spaces:
Sleeping
Sleeping
Varun Wadhwa
commited on
Logs
Browse files
app.py
CHANGED
@@ -151,10 +151,10 @@ def evaluate_model(model, dataloader, device):
|
|
151 |
print("evaluate_model sizes")
|
152 |
print(len(all_preds))
|
153 |
print(len(all_labels))
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
all_preds = np.asarray(all_preds, dtype=np.float32)
|
159 |
all_labels = np.asarray(all_labels, dtype=np.float32)
|
160 |
accuracy = accuracy_score(all_labels, all_preds)
|
|
|
151 |
print("evaluate_model sizes")
|
152 |
print(len(all_preds))
|
153 |
print(len(all_labels))
|
154 |
+
for i in range(min(100, len(all_labels))):
|
155 |
+
print("Pred vs Label")
|
156 |
+
print(id2label[all_preds[i]])
|
157 |
+
print(id2label[all_labels[i]])
|
158 |
all_preds = np.asarray(all_preds, dtype=np.float32)
|
159 |
all_labels = np.asarray(all_labels, dtype=np.float32)
|
160 |
accuracy = accuracy_score(all_labels, all_preds)
|