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)