MCPcopy Create free account
hub / github.com/darioShar/DLPM / additional_logging

Function additional_logging

script_utils.py:135–151  ·  view source on GitHub ↗
(exp, args)

Source from the content-addressed store, hash-verified

133
134# some additional logging
135def additional_logging(exp, args):
136 # logging job id
137 if (exp.manager.logger is not None) and (args.job_id is not None):
138 exp.manager.logger.log('job_id', args.job_id)
139
140 # logging hash parameter
141 if (exp.manager.logger is not None):
142 exp.manager.logger.log('hash_parameter', exp.utils.exp_hash(exp.p))
143
144 # logging hash eval
145 if (exp.manager.logger is not None):
146 exp.manager.logger.log('hash_eval', exp.utils.eval_hash(exp.p))
147
148 # starting epoch and batch
149 if (exp.manager.logger is not None):
150 exp.manager.logger.log('starting_epoch', exp.manager.epochs)
151 exp.manager.logger.log('starting_batch', exp.manager.total_steps)
152
153
154# define and parse the arguments

Callers 2

run_expFunction · 0.85
eval_expFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected