Skip to content

Commit

Permalink
fixed a bug in reading the predicted_boolean_probability for computin…
Browse files Browse the repository at this point in the history
…g auc
  • Loading branch information
ChaoPang committed Dec 9, 2024
1 parent 07292d0 commit 562698c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cehrbert/runners/hf_cehrbert_finetune_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def do_predict(test_dataloader: DataLoader, model_args: ModelArguments, training
test_prediction_pd = pd.read_parquet(test_prediction_folder)
# Compute metrics and save results
metrics = compute_metrics(
references=test_prediction_pd.boolean_value, probs=test_prediction_pd.boolean_prediction_probability
references=test_prediction_pd.boolean_value, probs=test_prediction_pd.predicted_boolean_probability
)
metrics["test_loss"] = np.mean(test_losses)

Expand Down

0 comments on commit 562698c

Please sign in to comment.