From 4f45b1753deb614b1416007cb660ecbdaad3c1b9 Mon Sep 17 00:00:00 2001 From: xzy Date: Wed, 2 Oct 2024 12:22:56 -0400 Subject: [PATCH 1/4] minor change --- get_result_web.py | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/get_result_web.py b/get_result_web.py index 8d79d857..2a5df8b8 100644 --- a/get_result_web.py +++ b/get_result_web.py @@ -13,13 +13,12 @@ entity = "xzy11632" project = "dance-dev" collect_datasets = { - "cta_actinn": [ - "84230ea4-998d-4aa8-8456-81dd54ce23af", "d3566d6a-a455-4a15-980f-45eb29114cab", - "4c4cd77c-8fee-4836-9145-16562a8782fe", "ae29ebd0-1973-40a4-a6af-d15a5f77a80f", - "bc260987-8ee5-4b6e-8773-72805166b3f7", "bc2a7b3d-f04e-477e-96c9-9d5367d5425c", - "d9b4bc69-ed90-4f5f-99b2-61b0681ba436" - ], "cta_celltypist": [ + "84230ea4-998d-4aa8-8456-81dd54ce23af", + "d3566d6a-a455-4a15-980f-45eb29114cab", + ], + "cta_scdeepsort": [ + "84230ea4-998d-4aa8-8456-81dd54ce23af", "d3566d6a-a455-4a15-980f-45eb29114cab", "4c4cd77c-8fee-4836-9145-16562a8782fe", "ae29ebd0-1973-40a4-a6af-d15a5f77a80f", "bc260987-8ee5-4b6e-8773-72805166b3f7", "bc2a7b3d-f04e-477e-96c9-9d5367d5425c", "d9b4bc69-ed90-4f5f-99b2-61b0681ba436", "01209dce-3575-4bed-b1df-129f57fbc031", @@ -27,14 +26,11 @@ "2adb1f8a-a6b1-4909-8ee8-484814e2d4bf", "3faad104-2ab8-4434-816d-474d8d2641db" ], "cta_singlecellnet": [ - "4c4cd77c-8fee-4836-9145-16562a8782fe", "ae29ebd0-1973-40a4-a6af-d15a5f77a80f", - "bc260987-8ee5-4b6e-8773-72805166b3f7", "bc2a7b3d-f04e-477e-96c9-9d5367d5425c", - "d9b4bc69-ed90-4f5f-99b2-61b0681ba436", "01209dce-3575-4bed-b1df-129f57fbc031", - "055ca631-6ffb-40de-815e-b931e10718c0", "2a498ace-872a-4935-984b-1afa70fd9886", - "2adb1f8a-a6b1-4909-8ee8-484814e2d4bf", "3faad104-2ab8-4434-816d-474d8d2641db" + "84230ea4-998d-4aa8-8456-81dd54ce23af", + "d3566d6a-a455-4a15-980f-45eb29114cab", ] } -file_root = "/home/zyxing/dance/examples/tuning" +file_root = "/egr/research-dselab/dingjia5/zhongyu/dance/examples/tuning" def check_identical_strings(string_list): @@ -58,7 +54,8 @@ def check_identical_strings(string_list): def get_sweep_url(step_csv: pd.DataFrame): ids = step_csv["id"] sweep_urls = [] - for run_id in tqdm(ids, leave=False): + for run_id in tqdm(reversed(ids), + leave=False): #The reversal of order is related to additional_sweep_ids.append(sweep_id) api = wandb.Api() run = api.run(f"/{entity}/{project}/runs/{run_id}") sweep_urls.append(run.sweep.url) From 86d000df330499468a9530aa669fa06aea99cefb Mon Sep 17 00:00:00 2001 From: xzy Date: Fri, 8 Nov 2024 21:07:50 +0800 Subject: [PATCH 2/4] minor_change --- get_result_web.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/get_result_web.py b/get_result_web.py index 37e694ec..ca1dc1f2 100644 --- a/get_result_web.py +++ b/get_result_web.py @@ -13,26 +13,26 @@ entity = "xzy11632" project = "dance-dev" collect_datasets = { - "cta_actinn": [ - "471647b3-04fe-4c76-8372-3264feb950e8", "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", "01209dce-3575-4bed-b1df-129f57fbc031", - "055ca631-6ffb-40de-815e-b931e10718c0", "2a498ace-872a-4935-984b-1afa70fd9886", - "2adb1f8a-a6b1-4909-8ee8-484814e2d4bf", "3faad104-2ab8-4434-816d-474d8d2641db" - ], - "cta_celltypist": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", - ], - "cta_scdeepsort": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", - ], + # "cta_actinn": [ + # "471647b3-04fe-4c76-8372-3264feb950e8", "8a554710-08bc-4005-87cd-da9675bdc2e7", + # "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", "01209dce-3575-4bed-b1df-129f57fbc031", + # "055ca631-6ffb-40de-815e-b931e10718c0", "2a498ace-872a-4935-984b-1afa70fd9886", + # "2adb1f8a-a6b1-4909-8ee8-484814e2d4bf", "3faad104-2ab8-4434-816d-474d8d2641db" + # ], + # "cta_celltypist": [ + # "471647b3-04fe-4c76-8372-3264feb950e8", + # "8a554710-08bc-4005-87cd-da9675bdc2e7", + # "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", + # ], + # "cta_scdeepsort": [ + # "471647b3-04fe-4c76-8372-3264feb950e8", + # "8a554710-08bc-4005-87cd-da9675bdc2e7", + # "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", + # ], "cta_singlecellnet": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", + "c7775e88-49bf-4ba2-a03b-93f00447c958", "456e8b9b-f872-488b-871d-94534090a865", + "738942eb-ac72-44ff-a64b-8943b5ecd8d9", "a5d95a42-0137-496f-8a60-101e17f263c8", + "71be997d-ff75-41b9-8a9f-1288c865f921" ] } file_root = "/home/zyxing/dance/examples/tuning" @@ -87,7 +87,7 @@ def write_ans(): step_str = f"step2:{step2_url}|step3:{step3_str}" ans.append({"Dataset_id": dataset_id, method_folder: step_str}) with open('temp_ans.json', 'w') as f: - json.dump(ans, f) + json.dump(ans, f, indent=4) write_ans() From 5d32d2eacca45fc82811e45ad7e1aeebf21728f3 Mon Sep 17 00:00:00 2001 From: xzy Date: Fri, 8 Nov 2024 08:11:55 -0500 Subject: [PATCH 3/4] minor --- get_result_web.py | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/get_result_web.py b/get_result_web.py index 7d3ed259..fe3c54ec 100644 --- a/get_result_web.py +++ b/get_result_web.py @@ -7,32 +7,14 @@ from dance.utils import try_import -os.environ["http_proxy"] = "http://121.250.209.147:7890" -os.environ["https_proxy"] = "http://121.250.209.147:7890" wandb = try_import("wandb") entity = "xzy11632" project = "dance-dev" collect_datasets = { - "cta_actinn": [ - "471647b3-04fe-4c76-8372-3264feb950e8", "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", "01209dce-3575-4bed-b1df-129f57fbc031", - "055ca631-6ffb-40de-815e-b931e10718c0", "2a498ace-872a-4935-984b-1afa70fd9886", - "2adb1f8a-a6b1-4909-8ee8-484814e2d4bf", "3faad104-2ab8-4434-816d-474d8d2641db" - ], "cta_celltypist": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", - ], - "cta_scdeepsort": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", - ], - "cta_singlecellnet": [ - "471647b3-04fe-4c76-8372-3264feb950e8", - "8a554710-08bc-4005-87cd-da9675bdc2e7", - "eeacb0c1-2217-4cf6-b8ce-1f0fedf1b569", + "c7775e88-49bf-4ba2-a03b-93f00447c958", "456e8b9b-f872-488b-871d-94534090a865", + "738942eb-ac72-44ff-a64b-8943b5ecd8d9", "a5d95a42-0137-496f-8a60-101e17f263c8", + "71be997d-ff75-41b9-8a9f-1288c865f921" ] } file_root = "/egr/research-dselab/dingjia5/zhongyu/dance/examples/tuning" @@ -87,7 +69,7 @@ def write_ans(): step_str = f"step2:{step2_url}|step3:{step3_str}" ans.append({"Dataset_id": dataset_id, method_folder: step_str}) with open('temp_ans.json', 'w') as f: - json.dump(ans, f) + json.dump(ans, f, indent=4) write_ans() From 2408e5428d563214528a7fd37dbf415cd2c4de5d Mon Sep 17 00:00:00 2001 From: xzy Date: Fri, 8 Nov 2024 21:15:14 +0800 Subject: [PATCH 4/4] minor --- get_result_web.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/get_result_web.py b/get_result_web.py index 97717245..bed6753b 100644 --- a/get_result_web.py +++ b/get_result_web.py @@ -11,8 +11,7 @@ from dance.utils import try_import # get yaml of best method -os.environ["http_proxy"] = "http://121.250.209.147:7890" -os.environ["https_proxy"] = "http://121.250.209.147:7890" + wandb = try_import("wandb") entity = "xzy11632" project = "dance-dev"