MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _default_output_name

Function _default_output_name

scripts/hora/train.py:57–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56
57def _default_output_name() -> str:
58 if args.algo == 'PPO':
59 return 'run1_continue' if args.checkpoint else f'run_{args.task}'
60 # Stage2: output to Stage1's run dir
61 if not _is_stage2_checkpoint(args.checkpoint):
62 return f'run_{args.task}'
63 # Stage2 resume: output to same directory as checkpoint
64 return 'run2_continue'
65
66
67if not args.test and args.output_name == 'debug':

Callers 1

train.pyFile · 0.85

Calls 1

_is_stage2_checkpointFunction · 0.85

Tested by

no test coverage detected