Skip to content

Commit

Permalink
chore: Improved logging on upload_results func for clarificaition (#722)
Browse files Browse the repository at this point in the history
* Improved  logging on upload_results func for clarificaition

* remove parenthese added failure detail
  • Loading branch information
brianshen3 authored Oct 31, 2024
1 parent 8a832ff commit 0772ba8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kolena/dataset/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,13 @@ def _upload_results(

link = f"{get_platform_url()}/dataset/standards?datasetId={dataset_id}&{models_str}"
log.info(
f"uploaded test results for model '{model}' on dataset '{dataset}': "
f"{total_rows} uploaded, {response.n_inserted} inserted, {response.n_updated} updated ({link})",
f"Upload Summary for Model '{model}' on Dataset '{dataset}': \n"
f"Total Rows Attempted: {total_rows}\n"
f"Rows Successfully Inserted: {response.n_inserted}\n"
f"Rows Successfully Updated: {response.n_updated}\n"
f"Rows Failed to Insert/Update: {total_rows - response.n_inserted - response.n_updated}"
f"Verify the id fields matches. Unchanged datapoints won't be modified. \n"
f"Details: {link}",
)
return response

Expand Down

0 comments on commit 0772ba8

Please sign in to comment.