#NEWLINE# def _get_cost_symbol( self ) : #NEWLINE# #INDENT# y = self . _get_y_symbol ( ) #NEWLINE# output = self . _get_output_symbol ( ) #NEWLINE# cost = ( - T . mean ( T . log ( output ) [ ( T . arange ( y . shape [ 0 ] ) , y ) ] ) ) #NEWLINE# return cost