#NEWLINE# @ application ( inputs = [ 'train_cost' , 'model_cost' , 'model_prior_mean' , 'model_prior_variance' ] , outputs = [ 'total_cost' ] ) #NEWLINE# def apply( self , application_call , train_cost , model_cost , model_prior_mean , model_prior_variance ) : #NEWLINE# #INDENT# application_call . add_auxiliary_variable ( model_prior_mean . copy ( ) , name = 'model_prior_mean' ) #NEWLINE# application_call . add_auxiliary_variable ( model_prior_variance . copy ( ) , name = 'model_prior_variance' ) #NEWLINE# total_cost = ( train_cost + model_cost ) #NEWLINE# total_cost . name = 'total_cost' #NEWLINE# return model_prior_mean