MCPcopy Create free account
hub / github.com/cure-lab/deep-active-learning / time_file_str

Function time_file_str

utils.py:149–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148
149def time_file_str():
150 ISOTIMEFORMAT = '%Y-%m-%d'
151 string = '{}'.format(time.strftime(ISOTIMEFORMAT,
152 time.gmtime(time.time())))
153 return string + '-{}'.format(random.randint(1, 10000))
154
155
156def adjust_learning_rate(optimizer, epoch, gammas, schedule, args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected