Skip to content

Commit

Permalink
Debugged the error that was causing to save the predictions in the te…
Browse files Browse the repository at this point in the history
…xt file in a faulty way.
  • Loading branch information
kspruthviraj committed Jul 13, 2022
1 parent 5ef001c commit 6115a34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils/model_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,8 @@ def run_ensemble_prediction_on_unseen(self, test_main, data_loader, name):

output, prob = cls_predict_on_unseen(data_loader.test_dataloader, self.model)

output = torch.cat(output)
prob = torch.cat(prob)

output = output.cpu().numpy()
prob = prob.cpu().numpy()

Ensemble_prob.append(prob)
Expand Down

0 comments on commit 6115a34

Please sign in to comment.