#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 ) #NEWLINE# self . costs = np . zeros ( ( self . N , QuadMulFeats . 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 ) ]