From 0a695d6f28fba4d5cbe7cc34fe81d07490e77964 Mon Sep 17 00:00:00 2001 From: araison Date: Mon, 16 Jan 2023 17:49:42 +0100 Subject: [PATCH] Fixing EIXGNN parameter bug --- config_gen.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config_gen.py b/config_gen.py index b72e681..c9a7e18 100644 --- a/config_gen.py +++ b/config_gen.py @@ -236,3 +236,16 @@ if "__main__" == __name__: + f"dataset={dataset_name}-model={model_kind}-explainer={explainer_name}_{obj_config_to_str(explainer_c)}.yaml" ) write_yaml(explaining_cfg, PATH) + os.makedirs(explaining_folder + "/0", exists_ok=True) + os.makedirs(explaining_folder + "/1", exists_ok=True) + a = glob.glob(explaining_folder + "/*.yaml") + + for path in a[:8050]: + basename = os.path.basename(path) + dirname = os.path.dirname(path) + os.rename(path, dirname + "/0/" + basename) + + for path in a[8050:]: + basename = os.path.basename(path) + dirname = os.path.dirname(path) + os.rename(path, dirname + "/1/" + basename)