def __init__(self, Data, nBatch=10, nObsBatch=None, nLap=20, dataorderseed=42, allocModelName=None, **kwargs):
    ''' Constructor for creating an iterator over batches of WordsData
    '''
    self.Data = Data
    self.nBatch = nBatch
    self.nLap = nLap
    # specify self.nObsTotal to be the total number of documents in the admixture case
    # used only really to have stochastic online not break
    self.nObsTotal = Data.nDocTotal #nDoc is the total number of documents in the given mini-batch
    
    # number of observations in batch
    if nObsBatch is None:
        self.nObsBatch = Data.nDocTotal/nBatch
    else:
        self.nObsBatch = nObsBatch
    
    # 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/AdmixMinibatchIterator.py/AdmixMinibatchIterator.__init__/original