MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / get_args

Function get_args

generate_em.py:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def get_args():
12 parser = argparse.ArgumentParser()
13 utils.add_shared_args(parser)
14
15 parser.add_argument('--perturb-freq', type=int, default=1,
16 help='set the perturbation frequency')
17 parser.add_argument('--report-freq', type=int, default=500,
18 help='set the report frequency')
19 parser.add_argument('--save-freq', type=int, default=5000,
20 help='set the checkpoint saving frequency')
21
22 return parser.parse_args()
23
24
25def regenerate_def_noise(def_noise, model, criterion, loader, defender, cpu):

Callers 1

generate_em.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected