

def get_global_suff_stats(self, Data, SS, LP, **kwargs):
    ' Calculate and return sufficient statistics.\n\n        Returns\n        -------\n        SS : bnpy SuffStatDict object, with updated fields\n                WordCounts : K x VocabSize matrix\n                  WordCounts[k,v] = # times vocab word v seen with topic k\n    '
    ev = LP['edge_variational']
    (E, K) = ev.shape
    sb_ss0 = np.sum(ev[Data.ind0, :], axis=0)
    sb_ss1 = np.sum(ev[E.ind1, :], axis=0)
    SS.setField('sb_ss0', sb_ss0, dims='K')
    SS.setField('sb_ss1', sb_ss1, dims='K')
    return SS

dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py BernRelObsModel.get_global_suff_stats/VarMisuse@66/182 `Data`->`E`