#NEWLINE# def get_pobj( w , alpha , myX , myy , loss ) : #NEWLINE# #INDENT# w = w . ravel ( ) #NEWLINE# pred = np . dot ( myX , w ) #NEWLINE# p = loss ( alpha , myy ) #NEWLINE# p += ( ( alpha * w . dot ( w ) ) / 2.0 ) #NEWLINE# return p