Skip to content

Commit

Permalink
Move set12 tag to top-level npuzzle results folder
Browse files Browse the repository at this point in the history
  • Loading branch information
camall3n committed Jun 18, 2021
1 parent ece5aff commit 5bfe09f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/npuzzle/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ def get_successors(puz):
search_results = search_fn(**search_dict)

#%% Save the results
tag = '{}-puzzle-set12/'.format(args.n)
tag = '{}-puzzle/'.format(args.n)
if args.random_goal:
tag += 'random_goal/'
else:
tag += 'default_goal/'
tag += args.macro_type

results_dir = 'results/npuzzle/{}/{}/'.format(args.search_alg,tag)
results_dir = 'results/npuzzle-set12/{}/{}/'.format(args.search_alg,tag)
os.makedirs(results_dir, exist_ok=True)
with open(results_dir+'seed-{:03d}.pickle'.format(args.random_seed), 'wb') as file:
pickle.dump(search_results, file)
Expand Down

0 comments on commit 5bfe09f

Please sign in to comment.