#NEWLINE# def update_gradients_full( self , dL_dK , X , X2 = None ) : #NEWLINE# #INDENT# ( dot_prod , A , B ) = self . _AB ( X , X2 ) #NEWLINE# dK_dA = ( ( self . variance * self . order ) * ( A ** ( self . order - 1.0 ) ) ) #NEWLINE# dL_dA = ( dL_dK * dK_dA ) #NEWLINE# self . scale . gradient = ( dL_dA * dot_prod ) . sum ( ) #NEWLINE# self . bias . gradient = dL_dA . sum ( ) #NEWLINE# self . variance . gradient = np . sum ( ( dL_dK * B ) )