

@classmethod
def CreateWithAllComps(cls, oDict, obsPrior, compDictList):
    ' Create MultObsModel, all K component Distr objects,\n         and the prior Distr object in one call\n    '
    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 oDict

dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py BernRelObsModel.CreateWithAllComps/VarMisuse@110/191 `self`->`oDict`