Skip to content
Snippets Groups Projects
Commit 594b52b0 authored by spmohanty's avatar spmohanty
Browse files

Align functionality of log_every_n_steps with documentation.

parent 75387834
No related branches found
No related tags found
No related merge requests found
......@@ -108,9 +108,9 @@ def evaluate_outputs(data_df, outputs, log_every_n_steps=1):
per_task_metrics[task_name]["sample_score"].append(metric_score)
if row_idx % log_every_n_steps == 0:
if (row_idx + 1) % log_every_n_steps == 0:
print_sample(
row_idx, model_output, ground_truth, metric, metric_score
row_idx + 1, model_output, ground_truth, metric, metric_score
)
return per_task_metrics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment