def __init__(self, vocab_size=None, dbpath=None, nDocTotal=None, nBatch=None, nLap=20, dataorderseed=42):
    ''' Constructor for creating an iterator over the batches of data
    '''
    self.vocab_size= vocab_size
    self.nBatch = nBatch
    self.nLap = nLap
    self.dbpath = dbpath
    # used only really to have stochastic online not break
    self.nDocTotal = nDocTotal
    
    # num documents in each batch
    self.nObsBatch = nDocTotal/nBatch
    
    # Config order in which batches are traversed
    self.curLapPos = -1
    self.lapID  = 0
    self.dataorderseed = int(int(dataorderseed) - MAXSEED)
    # Make list with entry for every distinct batch
    #   where each entry is itself a list of obsIDs in the full dataset
    self.obsIDByBatch = self.configObsIDsForEachBatch()
          
  #########################################################  accessor methods
  #########################################################
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/data/AdmixMinibatchIteratorDB.py/AdmixMinibatchIteratorDB.__init__/operator `%` -> `-`