#NEWLINE# def compute_blended_indexed_averages( simple_sum , simple_count , global_average ) : #NEWLINE# #INDENT# return np . array ( [ ( ( ( global_average * constants . BLENDING_RATIO ) + simple_sum [ i ] ) / ( constants . BLENDING_RATIO + simple_count [ global_average ] ) ) for i in range ( len ( simple_sum ) ) ] , dtype = np . float32 )