#NEWLINE# def _rwUpdate( W , D , O , Alpha , Beta , Lambda ) : #NEWLINE# #INDENT# Vtotal = np . dot ( Vdelta . T , D ) #NEWLINE# L = ( O * Lambda ) #NEWLINE# Vdelta = ( ( Alpha * Beta ) * ( L - Vtotal ) ) #NEWLINE# W += ( D [ : , np . newaxis ] * Vdelta )