(args)
| 180 | parser.add_argument("--logger",default=None, help="logger") |
| 181 | |
| 182 | def validate_args(args): |
| 183 | # validate before loading data |
| 184 | if args.training_curriculum == "random": |
| 185 | args.bootstrapping_update_epochs = [] |
| 186 | else: |
| 187 | assert args.bootstrapping_start is not None |
| 188 | assert args.bootstrapping_start > 0 |
| 189 | |
| 190 | if args.bootstrapping_ticks is None: |
| 191 | bootstrapping_update_epochs = [args.bootstrapping_start] |
| 192 | else: |
| 193 | additional_update_epochs = [int(x) for x in args.bootstrapping_ticks.split(',')] |
| 194 | bootstrapping_update_epochs = [args.bootstrapping_start] + additional_update_epochs |
| 195 | args.bootstrapping_update_epochs = bootstrapping_update_epochs |
| 196 | |
| 197 | def load_untrained_model(args): |
| 198 | args.model_type = args.model_type.lower() |
nothing calls this directly
no outgoing calls
no test coverage detected