Skip to content

Commit

Permalink
add option for running filters on fixed val dataset from txt
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Nov 5, 2024
1 parent 2d8df23 commit c5aaeef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spf/scripts/run_filters_on_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ def get_parser():
# ]

dataset_fns = sorted(args.datasets)
if len(dataset_fns) == 1 and dataset_fns[0][-4:] == ".txt":
dataset_fns = [x.strip() for x in open(dataset_fns[0]).readlines()]

random.seed(args.seed)
random.shuffle(dataset_fns)
Expand Down

0 comments on commit c5aaeef

Please sign in to comment.