Varun Wadhwa commited on
Commit
9d4c2df
·
unverified ·
1 Parent(s): 7b9d13e
Files changed (1) hide show
  1. app.py +4 -0
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