MCPcopy Create free account
hub / github.com/cjrd/self-supervised-pretraining / parse_args

Function parse_args

utils/plot_pct_pretrain.py:14–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12dir_path = os.path.dirname(os.path.realpath(__file__))
13
14def parse_args():
15 parser = argparse.ArgumentParser(description='')
16 parser.add_argument(
17 '--results-dir',
18 default=os.path.realpath(os.path.join(dir_path, "..", "results")))
19 parser.add_argument(
20 '--out-dir',
21 default=os.path.realpath(os.path.join(dir_path, "..", "plot-results")))
22 parser.add_argument(
23 '--dataset',
24 default="all")
25
26 args = parser.parse_args()
27 return args
28
29def logit_y_axis(yfact=100):
30 # logit y axes with readable labels

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected