Skip to content

Commit

Permalink
generate eval files for all speaker_weight
Browse files Browse the repository at this point in the history
  • Loading branch information
ronghanghu committed May 10, 2018
1 parent bcc1e1e commit b681a2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/R2R/rational_follower.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def run_rational_follower(
accuracies_by_weight[speaker_weight] = score_summary
index_counts_by_weight[speaker_weight] = index_count

if eval_file:
with open(eval_file % speaker_weight, 'w') as f:
utils.pretty_json_dump(eval_results, f)
if eval_file:
with open(eval_file % speaker_weight, 'w') as f:
utils.pretty_json_dump(eval_results, f)

if compute_oracle:
oracle_results = {}
Expand Down

0 comments on commit b681a2a

Please sign in to comment.