#NEWLINE# def features( self , state , **kwargs ) : #NEWLINE# #INDENT# self . tgt_cld = state . cloud #NEWLINE# self . tgt_ctx . set_cld ( self . tgt_cld ) #NEWLINE# costs = batch_tps_rpm_bij ( self . src_ctx , self . tgt_ctx , component_cost = True ) [ : , : SimpleMulFeats . N_costs ] #NEWLINE# for i in range ( self . N ) : #NEWLINE# #INDENT# self . regind_feats [ i , : ] = ( self . indicators [ i ] * np . sum ( costs [ i , 1 : 2 ] ) ) #NEWLINE# #UNINDENT# self . costs = np . zeros ( ( self . N , QuadSimpleMulFeats . N_feats ) ) #NEWLINE# for i in range ( self . N ) : #NEWLINE# #INDENT# self . costs [ i , : ] = get_quad_terms ( costs [ i ] ) #NEWLINE# #UNINDENT# return np . c_ [ ( self . costs , self . indicators , self . regind_feats ) ]