#NEWLINE# def f( self , wrt , inpt , target ) : #NEWLINE# #INDENT# prediction = self . predict ( wrt , inpt ) #NEWLINE# log_pred = np . log ( prediction ) #NEWLINE# return ( - ( log_pred * target ) . mean ( ) )