diff --git a/explainability/compute_shap_inter_vals.py b/explainability/compute_shap_inter_vals.py index cebd24323a4e64cbab0846da12824bc043bbe76f..fdb8fe8c9f99ee37f98a243e7868991797886b47 100644 --- a/explainability/compute_shap_inter_vals.py +++ b/explainability/compute_shap_inter_vals.py @@ -70,7 +70,7 @@ if __name__ == "__main__": print(f"{group}-{method_names[j]}") method_name = method_names[j] model_name = model_choices[method_name] - model_path = f"./output/fitted_models/{group}_{method_names[j]}_{model_name}.pkl" + model_path = f"../model_selection/output/fitted_models/{group}_{method_names[j]}_{model_name}.pkl" # Load the fitted model from disk with open(model_path, 'rb') as file: fitted_model = pickle.load(file) diff --git a/explainability/compute_shap_vals.py b/explainability/compute_shap_vals.py index bad3860fa88c4139dcd02917bb1a1d0ef063a40c..b9625fb48976e32267b78abfab0631506b835ccb 100644 --- a/explainability/compute_shap_vals.py +++ b/explainability/compute_shap_vals.py @@ -70,7 +70,7 @@ if __name__ == "__main__": print(f"{group}-{method_names[j]}") method_name = method_names[j] model_name = model_choices[method_name] - model_path = f"./output/fitted_models/{group}_{method_names[j]}_{model_name}.pkl" + model_path = f"../model_selection/output/fitted_models/{group}_{method_names[j]}_{model_name}.pkl" # Load the fitted model from disk with open(model_path, 'rb') as file: fitted_model = pickle.load(file) diff --git a/explainability/fit_final_models.py b/model_selection/fit_final_models.py similarity index 100% rename from explainability/fit_final_models.py rename to model_selection/fit_final_models.py diff --git a/explainability/output/fitted_models/post_ORIG_CW_RF.pkl b/model_selection/output/fitted_models/post_ORIG_CW_RF.pkl similarity index 100% rename from explainability/output/fitted_models/post_ORIG_CW_RF.pkl rename to model_selection/output/fitted_models/post_ORIG_CW_RF.pkl diff --git a/explainability/output/fitted_models/post_ORIG_XGB.pkl b/model_selection/output/fitted_models/post_ORIG_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/post_ORIG_XGB.pkl rename to model_selection/output/fitted_models/post_ORIG_XGB.pkl diff --git a/explainability/output/fitted_models/post_OVER_XGB.pkl b/model_selection/output/fitted_models/post_OVER_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/post_OVER_XGB.pkl rename to model_selection/output/fitted_models/post_OVER_XGB.pkl diff --git a/explainability/output/fitted_models/post_UNDER_XGB.pkl b/model_selection/output/fitted_models/post_UNDER_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/post_UNDER_XGB.pkl rename to model_selection/output/fitted_models/post_UNDER_XGB.pkl diff --git a/explainability/output/fitted_models/pre_ORIG_CW_RF.pkl b/model_selection/output/fitted_models/pre_ORIG_CW_RF.pkl similarity index 100% rename from explainability/output/fitted_models/pre_ORIG_CW_RF.pkl rename to model_selection/output/fitted_models/pre_ORIG_CW_RF.pkl diff --git a/explainability/output/fitted_models/pre_ORIG_XGB.pkl b/model_selection/output/fitted_models/pre_ORIG_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/pre_ORIG_XGB.pkl rename to model_selection/output/fitted_models/pre_ORIG_XGB.pkl diff --git a/explainability/output/fitted_models/pre_OVER_XGB.pkl b/model_selection/output/fitted_models/pre_OVER_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/pre_OVER_XGB.pkl rename to model_selection/output/fitted_models/pre_OVER_XGB.pkl diff --git a/explainability/output/fitted_models/pre_UNDER_XGB.pkl b/model_selection/output/fitted_models/pre_UNDER_XGB.pkl similarity index 100% rename from explainability/output/fitted_models/pre_UNDER_XGB.pkl rename to model_selection/output/fitted_models/pre_UNDER_XGB.pkl