#NEWLINE# def row_similarity( self , bdb , generator_id , modelno , rowid , target_rowid , colnos ) : #NEWLINE# #INDENT# X_L_list = self . _crosscat_latent_state ( bdb , generator_id , modelno ) #NEWLINE# X_D_list = self . _crosscat_latent_data ( colno , generator_id , modelno ) #NEWLINE# ( [ given_row_id , target_row_id ] , X_L_list , X_D_list ) = self . _crosscat_get_rows ( bdb , generator_id , [ rowid , target_rowid ] , X_L_list , X_D_list ) #NEWLINE# return self . _crosscat . similarity ( M_c = self . _crosscat_metadata ( bdb , generator_id ) , X_L_list = X_L_list , X_D_list = X_D_list , given_row_id = given_row_id , target_row_id = target_row_id , target_columns = [ crosscat_cc_colno ( bdb , generator_id , colno ) for colno in colnos ] )