#NEWLINE# def weighted_answer_probabilities( self , * args , **kwargs ) : #NEWLINE# #INDENT# probs = self . answer_probabilities ( * args , ** kwargs ) #NEWLINE# for ( probs_slice , scale_idx ) in self . scaling_sequence : #NEWLINE# #INDENT# probs = T . set_subtensor ( args [ : , probs_slice ] , ( probs [ : , probs_slice ] * consider_constant ( probs [ : , scale_idx ] . dimshuffle ( 0 , 'x' ) ) ) ) #NEWLINE# #UNINDENT# return probs