def compile_data(): """Input name of folder in saved_data and instance base""" # folder_names = ['1015DCDKHHT-05-PT'] # ['1015DCDKHT-PK-prob', '1015DCDKHT-05-prob'] # instance_base = ['DCDKHT_05hpoint_G46Vss2_1015_'] # ['DCDKHT_100hprob_PK_G46Vss2_1015_', 'DCDKHT_05hprob_G46Vss2_1015_'] rp = RiskPlot() folder_names = ['0106-PT-PU-345', '1111DCDKHT_MGTFC-PT-05', '1111DCDKHT_HGTFF-PT-05', '1111DCDKHT_MGTFF-PT-05'] instance_base = ['DCDKHT_HGTdesFC_05hpoint_G46Vss2_1110_', 'DCDKHT_MGTdesFC_05hpoint_G46Vss2_1110_', 'DCDKHT_HGTdesFF_05hpoint_G46Vss2_1111_', 'DCDKHT_MGTdesFF_05hpoint_G46Vss2_1111_'] for i in range(len(folder_names)): rp.retrieve_data(folder_names[i], instance_base[i])
def analysis_exp_1011(): # TODO fix naming! - parent # name format 1009NCDKHT-b rp = RiskPlot() datename = ['1012'] config = ['DCDKHT'] probname = ['h'] pername = [100] n_runs = 485 add = ['PK'] rp.retrieve_data(datename, config, probname, pername, n_runs, add) return None
def compile_1000_op2(): """250 instances per config outcomes, times, losses in a row different team makeups """ """Input name of folder in data_saved and instance base""" n_runs = 1000 rp = RiskPlot(n_runs) folder_names = [ '0107-PT-PU-335', '0108-PT-PU-333', '0108-PB-PU-335', '0108-PB-PU-333' ] instance_base = [ 'DKDCPT_PU335_desFF_05_G46Vss2_0107_', 'DKDCPT_PU333_desFF_05_G46Vss2_0108_', 'DKDCPB_PU335_desFF_05_G46Vss2_0108_', 'DKDCPB_PU333_desFF_05_G46Vss2_0109_' ] for i in range(len(folder_names)): rp.retrieve_data(folder_names[i], instance_base[i])
def compile_1000_op1(): """250 instances per config outcomes, times, losses in a row """ """Input name of folder in data_saved and instance base""" n_runs = 1000 rp = RiskPlot(n_runs) folder_names = [ '0107-NC-NK-NA', '0107-PT-PK-345', '0107-PB-PK-345', '0107-PT-PU-345', '0107-PB-PU-345', '0107-NC-DK-NA' ] instance_base = [ 'NKNC_desFF_NA_G46Vss2_0107_', 'DKDCPT_PK345_desFF_NA_G46Vss2_0107_', 'DKDCPB_PK345_desFF_NA_G46Vss2_0108_', 'DKDCPT_PU345_desFF_05_G46Vss2_0106_', 'DKDCPB_PU345_desFF_05_G46Vss2_0108_', 'DKNC_desFF_NA_G46Vss2_0107_' ] for i in range(len(folder_names)): rp.retrieve_data(folder_names[i], instance_base[i])
def analysis_exp_1012(): rp = RiskPlot() datename = ['1012', '1013'] config = ['DCDKHT', 'NCDKHT'] extra_id = ['PK', '100', '05', 'NA', 'NFOV'] pername = [5, 100] n_runs = 1000 perception = 'point' folders = [] """1012DCDKHT-h-PK""" folders.append(rp.assemble_parent_name(datename[0], config[0], extra_id[0])[0]) """1012DCDKHT-h-100""" folders.append(rp.assemble_parent_name(datename[0], config[0], extra_id[1])[0]) """1012DCDKHT-h-05""" folders.append(rp.assemble_parent_name(datename[0], config[0], extra_id[2])[0]) """1012NCDKHT-h-NA""" folders.append(rp.assemble_parent_name(datename[0], config[1], extra_id[3])[0]) folders.append('1013NCNKHT-n-0') """1013NCDKHT-h-NFOV """ folders.append(rp.assemble_parent_name(datename[1], config[0], extra_id[4])[0]) # subtitle = ['Perfect Knowledge', '100\% images', '5\% images', 'No Constraints', 'No Danger', 'no FOV'] # rp.retrieve_data(folders[0], 'DCDKHT_100hpoint_PK_G46Vss2_1012_', subtitle[0]) # rp.retrieve_data(folders[1], 'DCDKHT_100hpoint_G46Vss2_1012_', subtitle[1]) # rp.retrieve_data(folders[2], 'DCDKHT_05hpoint_G46Vss2_1012_', subtitle[2]) # rp.retrieve_data(folders[3], 'NCDKHT_NAhpoint_G46Vss2_1012_', subtitle[3]) # rp.retrieve_data(folders[4], 'NCNKHT_NApoint_G46Vss2_1013_', subtitle[4]) subtitle.append('no FOV') rp.retrieve_data(folders[5], 'DCDKHT_05hpoint_NFOV_G46Vss2_1013_', subtitle[4])
def compile_configs_op2(): """250 instances per config outcomes, times, losses in a row different team makeups """ """Input name of folder in data_saved and instance base""" n_runs = 250 rp = RiskPlot(n_runs) folder_names = [ '0106-PT-PU-335', '0106-PT-PU-333', '0106-PB-PU-335', '0106-PB-PU-333' ] instance_base = [ 'DCDKHT_MGTdesFF_05hpoint_G46Vss2_0106_', 'DCDKHH_MGTdesFF_05hpoint_G46Vss2_0106_', 'DKDCPB_PU335_desFF_05_G46Vss2_0106_', 'DKDCPB_PU333_desFF_05_G46Vss2_0106_' ] for i in range(len(folder_names)): if i == 0: continue rp.retrieve_data(folder_names[i], instance_base[i])
def compile_configs_op1(): """250 instances per config outcomes, times, losses in a row """ """Input name of folder in data_saved and instance base""" n_runs = 250 rp = RiskPlot(n_runs) folder_names = [ '0106-NC-NK-NA', '0106-PT-PK-345', '0106-PB-PK-345', '0106-PT-PU-345', '0106-PB-PU-345', '0106-NC-DK-NA' ] instance_base = [ 'NCNKHT_MGTdesFF_NApoint_G46Vss2_0106_', 'DCDKHT_MGTdesFF_100hpoint_PK_G46Vss2_0106_', 'DKDCPB_PK345_desFF_NA_G46Vss2_0106_', 'DCDKHT_MGTdesFF_05hpoint_G46Vss2_0105_', 'DKDCPB_PU345_desFF_05_G46Vss2_0106_', 'NCDKHT_MGTdesFF_NAhpoint_G46Vss2_0106_' ] for i in range(len(folder_names)): rp.retrieve_data(folder_names[i], instance_base[i])