MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / parse_resultsdir

Function parse_resultsdir

utils/utils.py:3–10  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1import os
2
3def parse_resultsdir(args):
4 if args.expname is None:
5 rsdir = os.path.join(args.results_dir, args.dataset)
6 else:
7 rsdir = os.path.join(args.results_dir, args.dataset, args.expname)
8
9 os.makedirs(rsdir, exist_ok=True)
10 return rsdir
11
12
13def find_best_checkpoint(directory, pattern, verbose=False):

Callers 1

fitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected