实用程序,用于将数据保存到cvs,作为一个易于读取和使用的tensorboard替代品
stepTimer的Python项目详细描述
步进定时器
小实用程序,用于测量n个等长任务的n步后剩余时间、执行任务的时间和总时间。 不过,这个工具有点小毛病…请投稿:)
fromstepTimerimportTimertimer=timer(nsteps=1000)# get the time after 200 steps. this is the total time from the beginning of the tasktimer.elapsed(self,step=200)#=> 2:30:55 in H:M:S# function to preaty print timetimer.printTime(self,<certainammountofsecods>)#=> 2:30:55 in H:M:S# total amount of time elapsed since timer was instantiatedelapsedTot()#=> 2:30:55 in H:M:S# time left to the compleation of 1000 steps, the total time is calculated as nsteps*average time withing each step.left(self,step=300)#=> 5:30:55 in H:M:S