# HG changeset patch # User goeckslab # Date 1755897210 0 # Node ID 4eca9d109de19b59799e1b2412efccf94295a1a7 # Parent e2a6fed32d5491e9ea7e13b4971270849ea49d91 planemo upload for repository https://github.com/goeckslab/gleam commit 55deacbbc78a00f27d789e11d563ba49dfb9cf9e diff -r e2a6fed32d54 -r 4eca9d109de1 feature_importance.py --- a/feature_importance.py Fri Aug 01 14:02:26 2025 +0000 +++ b/feature_importance.py Fri Aug 22 21:13:30 2025 +0000 @@ -136,10 +136,15 @@ predict_fn = model.predict_proba if hasattr(model, "predict_proba") else model.predict - explainer = shap.Explainer(predict_fn, bg) - self.shap_model_name = explainer.__class__.__name__ + try: + explainer = shap.Explainer(predict_fn, bg) + self.shap_model_name = explainer.__class__.__name__ - shap_values = explainer(X_data) + shap_values = explainer(X_data) + except Exception as e: + LOG.error(f"SHAP computation failed: {e}") + self.shap_model_name = None + return output_names = getattr(shap_values, "output_names", None) if output_names is None and hasattr(model, "classes_"): diff -r e2a6fed32d54 -r 4eca9d109de1 pycaret_macros.xml --- a/pycaret_macros.xml Fri Aug 01 14:02:26 2025 +0000 +++ b/pycaret_macros.xml Fri Aug 22 21:13:30 2025 +0000 @@ -1,5 +1,5 @@ - 0.1.0 + 0.1.0.1 3.3.2 1 @PYCARET_VERSION@+@SUFFIX@