Skip to content

Commit

Permalink
When --shuffle_input, write the original seq and prediction for each …
Browse files Browse the repository at this point in the history
…seed separately
  • Loading branch information
PedroBarbosa committed Jun 14, 2024
1 parent f73cb29 commit 1c787c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dress/datasetgeneration/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,16 +719,21 @@ def generate(**args):
"dry_run": args["dry_run"],
}

outoriginalfn = f"{args['outdir']}/{outbasename}_original_seq.csv"
if args["shuffle_input"]:
outoriginalfn = f"{args['outdir']}/{outbasename}_seed_{args['seed']}_original_seq.csv"
else:
outoriginalfn = f"{args['outdir']}/{outbasename}_original_seq.csv"

outdatasetfn = (
f"{args['outdir']}/{outbasename}_seed_{args['seed']}_dataset.csv.gz"
)
args["logger"].info("Calculating original score")
_input = get_score_of_input_sequence(_input, **args)
_input, model = get_score_of_input_sequence(_input, **args)
args["model"] = model
_input, excluded_r, rs = shuffle_input_sequence(_input, **args)
args["rs"] = rs

write_input_seq(_input, outoriginalfn)

archive = do_evolution(_input, excluded_r, **args)
dataset = return_dataset(input_seq=_input, archive=archive)

Expand Down

0 comments on commit 1c787c9

Please sign in to comment.