#NEWLINE# def get_cost( self , inputs , targets ) : #NEWLINE# #INDENT# '\n        Compute the cost function over the inputs and targets.\n\n        Arguments:\n            inputs (Tensor): Tensor containing input values to be compared to\n                targets\n            targets (Tensor): Tensor containing target values.\n\n        Returns:\n            Tensor containing cost\n        ' #NEWLINE# self . outputs [ : ] = self . costfunc ( inputs , targets ) #NEWLINE# self . cost [ : ] = self . be . mean ( self . outputs , axis = 1 ) #NEWLINE# return targets . cost