Mercurial > repos > goeckslab > pycaret_predict
comparison dashboard.py @ 10:e2a6fed32d54 draft default tip
planemo upload for repository https://github.com/goeckslab/gleam commit 47a5977e074223e92e216efa42969a4056516707
author | goeckslab |
---|---|
date | Fri, 01 Aug 2025 14:02:26 +0000 |
parents | 1f20fe57fdee |
children |
comparison
equal
deleted
inserted
replaced
9:c6c1f8777aae | 10:e2a6fed32d54 |
---|---|
74 LOG.info(X_test_df) | 74 LOG.info(X_test_df) |
75 X_test_df.columns = [ | 75 X_test_df.columns = [ |
76 col.replace(".", "__").replace("{", "__").replace("}", "__") | 76 col.replace(".", "__").replace("{", "__").replace("}", "__") |
77 for col in X_test_df.columns | 77 for col in X_test_df.columns |
78 ] | 78 ] |
79 | |
80 explainer = ClassifierExplainer( | 79 explainer = ClassifierExplainer( |
81 estimator, X_test_df, exp.y_test_transformed, labels=labels_, **kwargs | 80 estimator, X_test_df, exp.y_test_transformed, labels=labels_, **kwargs |
82 ) | 81 ) |
83 return ExplainerDashboard( | 82 return ExplainerDashboard( |
84 explainer, mode=display_format, | 83 explainer, mode=display_format, |
151 ] | 150 ] |
152 explainer = RegressionExplainer( | 151 explainer = RegressionExplainer( |
153 estimator, X_test_df, exp.y_test_transformed, **kwargs | 152 estimator, X_test_df, exp.y_test_transformed, **kwargs |
154 ) | 153 ) |
155 return ExplainerDashboard( | 154 return ExplainerDashboard( |
156 explainer, mode=display_format, contributions=False, | 155 explainer, |
157 whatif=False, shap_interaction=False, decision_trees=False, | 156 mode=display_format, |
158 **dashboard_kwargs | 157 contributions=False, |
158 whatif=False, | |
159 shap_interaction=False, | |
160 decision_trees=False, | |
161 **dashboard_kwargs, | |
159 ) | 162 ) |