Spaces:
Sleeping
Sleeping
Varun Wadhwa
commited on
Logs
Browse files
app.py
CHANGED
@@ -199,6 +199,10 @@ dataloader = DataLoader(tokenized_data['train'], batch_size=batch_size, collate_
|
|
199 |
# create testing data loader
|
200 |
test_dataloader = DataLoader(tokenized_data['test'], batch_size=batch_size, collate_fn=data_collator)
|
201 |
|
|
|
|
|
|
|
|
|
202 |
# put student model in train mode
|
203 |
student_model.train()
|
204 |
|
|
|
199 |
# create testing data loader
|
200 |
test_dataloader = DataLoader(tokenized_data['test'], batch_size=batch_size, collate_fn=data_collator)
|
201 |
|
202 |
+
# TEMPORARY - for testing
|
203 |
+
teacher_accuracy, teacher_precision, teacher_recall, teacher_f1 = evaluate_model(teacher_model, test_dataloader, device)
|
204 |
+
print(f"Teacher (test) - Accuracy: {teacher_accuracy:.4f}, Precision: {teacher_precision:.4f}, Recall: {teacher_recall:.4f}, F1 Score: {teacher_f1:.4f}")
|
205 |
+
|
206 |
# put student model in train mode
|
207 |
student_model.train()
|
208 |
|