hachirou吧 关注:18贴子:2,256
  • 11回复贴,共1

batch_size/epoch/steps/period

只看楼主收藏回复

An epoch usually means one iteration over all of the training data. For instance if you have 20,000 images and a batch size of 100 then the epoch should contain 20,000 / 100 = 200 steps. However I usually just set a fixed number of steps like 1000 per epoch even though I have a much larger data set. At the end of the epoch I check the average cost and if it improved I save a checkpoint. There is no difference between steps from one epoch to another. I just treat them as checkpoints.
People often shuffle around the data set between epochs. I prefer to use the random.sample function to choose the data to process in my epochs. So say I want to do 1000 steps with a batch size of 32. I will just randomly pick 32,000 samples from the pool of training data.
多少个steps进行一次汇报,为一个period


IP属地:北京1楼2018-10-09 10:46回复



    IP属地:北京2楼2018-10-09 11:20
    回复



      IP属地:北京3楼2018-10-09 12:19
      收起回复


        IP属地:北京4楼2018-10-09 14:45
        回复


          IP属地:北京5楼2018-10-09 16:18
          回复



            IP属地:北京6楼2018-10-09 17:15
            回复


              IP属地:北京7楼2018-10-09 17:18
              回复


                IP属地:北京8楼2018-10-09 17:56
                回复


                  IP属地:北京9楼2018-10-10 11:29
                  收起回复