

def calc_local_params(self, Data, LP, **kwargs):
    ' Calculate local parameters (E-step)\n\n        Returns\n        -------\n        LP : bnpy local parameter dict, with updated fields\n        E_logsoftev_WordsData : nDistinctWords x K matrix, where\n                               entry n,k = log p(word n | topic k)\n    '
    if (self.inferType == 'EM'):
        raise NotImplementedError('TODO')
    else:
        (LP['E_logsoftev_EdgeLik'], LP['E_logsoftev_EdgeEps']) = self.E_logsoftev_EdgeData(kwargs, LP)
    return LP

dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py BernRelObsModel.calc_local_params/VarMisuse@57/199 `Data`->`kwargs`