#NEWLINE# def loss( self , inputs , extra_inputs = None ) : #NEWLINE# #INDENT# if ( extra_inputs is None ) : #NEWLINE# #INDENT# extra_inputs = list ( ) #NEWLINE# #UNINDENT# return self . _opt_fun [ 'f_loss' ] ( * ( self + extra_inputs ) )