(args)
| 77 | |
| 78 | |
| 79 | def set_best_config(args): |
| 80 | if args.model not in BEST_CONFIGS: |
| 81 | return args |
| 82 | configs = BEST_CONFIGS[args.model] |
| 83 | for key, value in configs["general"].items(): |
| 84 | args.__setattr__(key, value) |
| 85 | if args.dataset not in configs: |
| 86 | return args |
| 87 | for key, value in configs[args.dataset].items(): |
| 88 | args.__setattr__(key, value) |
| 89 | return args |
| 90 | |
| 91 | |
| 92 | def train(args): # noqa: C901 |
no outgoing calls