Skip to content

Commit

Permalink
add support for single class classification
Browse files Browse the repository at this point in the history
  • Loading branch information
sfluegel committed Dec 14, 2023
1 parent 462379b commit e90d66b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chebai/result/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ def evaluate_model(
save_ind += 1
n_saved = 0

test_preds = torch.cat(preds_list)
test_labels = torch.cat(labels_list)
if buffer_dir is None:
test_preds = torch.cat(preds_list)
test_labels = torch.cat(labels_list)

return test_preds, test_labels
return test_preds, test_labels


def load_results_from_buffer(buffer_dir, device):
Expand Down

0 comments on commit e90d66b

Please sign in to comment.