def update_global_params_soVB( self, SS, rho, **kwargs ):
    ''' Update global params (stick-breaking Beta params qalpha1, qalpha0).
        for stochastic online VB.
    '''
    assert self.K == SS.K
    qalpha1 = self.alpha1 + SS.N
    qalpha0 = self.alpha0 * np.ones( self.K )
    qalpha0[:-1] += SS.N[::-1].cumsum()[::-1][1:]
    
    self.qalpha1 = rho * qalpha1 + (1-rho) * self.qalpha1
    self.qalpha0 = rho * qalpha0 + (rho-1) * self.qalpha0
    self.set_helper_params()
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/allocmodel/mix/DPMixModel.py/DPMixModel.update_global_params_soVB/swapped operands of `-`