MCPcopy Create free account
hub / github.com/LHRLAB/ChatKBQA / validate_args

Function validate_args

config.py:182–195  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

180 parser.add_argument("--logger",default=None, help="logger")
181
182def 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
197def load_untrained_model(args):
198 args.model_type = args.model_type.lower()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected