#NEWLINE# def update( self , x , y ) : #NEWLINE# #INDENT# y_pred = self . predict ( x ) #NEWLINE# err = ( y_pred - y ) #NEWLINE# self . sse += ( err ** 2 ) #NEWLINE# self . n_updates += 1 #NEWLINE# self . bprop ( self )