#NEWLINE# def simulate_joint( self , bdb , generator_id , targets , constraints , modelno , num_predictions = 1 ) : #NEWLINE# #INDENT# M_c = self . _crosscat_metadata ( bdb , generator_id ) #NEWLINE# X_L_list = self . _crosscat_latent_state ( bdb , generator_id , modelno ) #NEWLINE# X_D_list = self . _crosscat_latent_data ( bdb , generator_id , modelno ) #NEWLINE# ( Q , Y , X_L_list , X_D_list ) = self . _crosscat_remap_two ( bdb , generator_id , X_L_list , X_D_list , targets , constraints ) #NEWLINE# raw_outputs = self . _crosscat . simple_predictive_sample ( seed = crosscat_seed ( bdb ) , M_c = M_c , X_L = X_L_list , X_D = X_D_list , Y = Y , Q = Q , n = num_predictions ) #NEWLINE# return [ [ crosscat_code_to_value ( bdb , generator_id , M_c , colno , X_L_list ) for ( ( _ , colno ) , code ) in zip ( targets , raw_output ) ] for raw_output in raw_outputs ]