@classmethod
  def CreateWithAllComps(cls, oDict, obsPrior, compDictList):
    ''' Create MultObsModel, all K component Distr objects,
         and the prior Distr object in one call
    '''
    if oDict['inferType'] not in 'EM':
      raise NotImplementedError("TODO")

    self = cls(oDict['inferType'], obsPrior=obsPrior)
    self.K = len(compDictList)
    self.comp = [None for k in range(self.K)]
    for k in xrange(self.K):
      self.comp[k] = BetaDistr(**compDictList[k])
    return self

  ######################################################### Accessors
  #########################################################
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py/BernRelObsModel.CreateWithAllComps/operator `==` -> `not in`