MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / main

Function main

main.py:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def main():
7 parser = argparse.ArgumentParser()
8 parser.add_argument('--config', type=str, default='conf.yml', help='path to the config.yaml file')
9 args = parser.parse_args()
10 config = load_config(args.config)
11 print('Config loaded')
12 mode = config.MODE
13 if mode == 1:
14 train(config)
15 else:
16 test(config)
17if __name__ == "__main__":
18 main()

Callers 1

main.pyFile · 0.70

Calls 3

load_configFunction · 0.90
trainFunction · 0.90
testFunction · 0.90

Tested by

no test coverage detected