Skip to content

Commit

Permalink
Merge pull request #52 from skarabocu/distortion_ratio_typo_fix
Browse files Browse the repository at this point in the history
Fixing the args.distort_rate typo in the run.py file
  • Loading branch information
esion-liu authored Jun 7, 2024
2 parents 17e27c4 + 0d57167 commit 3e6827c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main():
plot_comparison_results(args.voters_model, results, args.num_voters, args.num_candidates,
args.num_topn, args.num_iterations, distortion_ratio=0.0, save_figure=True)

if args.distort_rate == 0.0:
if args.distortion_ratio == 0.0:
return

results2 = {}
Expand All @@ -62,7 +62,7 @@ def main():
args.num_voters,
args.num_topn,
args.voters_model,
distortion_ratio=args.distort_rate,
distortion_ratio=args.distortion_ratio,
verbose=True)
plot_comparison_results(args.voters_model, results2, args.num_voters, args.num_candidates,
args.num_topn, args.num_iterations, distortion_ratio=args.distortion_ratio, save_figure=True)
Expand Down

0 comments on commit 3e6827c

Please sign in to comment.