@classmethod
  def CreateWithAllComps(cls, oDict, obsPrior, compDictList):
    if oDict['inferType'] == '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
  #########################################################
Make contents API request - either file contents or directory listing
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py/BernRelObsModel.CreateWithAllComps--crossover with--dataset/ETHPy150Open jupyter/nbviewer/nbviewer/providers/github/client.py/AsyncGitHubClient.get_contents