def calc_local_params(self, Data, LP, **kwargs):
    ''' Calculate local parameters (E-step)

        Returns
        -------
        LP : bnpy local parameter dict, with updated fields
        E_logsoftev_WordsData : nDistinctWords x K matrix, where
                               entry n,k = log p(word n | topic k)
    '''
    if self.inferType == 'EM':
      raise NotImplementedError('TODO')
    else:
      LP['E_logsoftev_EdgeLik'], LP['E_logsoftev_EdgeEps'] = self.E_logsoftev_EdgeData(Data, LP)
    return LP
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py/BernRelObsModel.calc_local_params/original