Databricks Notebook Rendering Issue: IPython.lib.display.IFrame
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2022 07:33 PM
Similar issue here: https://stackoverflow.com/questions/71336374/randomforestclassifier-explainer-dashboard-output-in-da...
Actual output – Databricks Notebook
Expected Output – Jupyter Notebook
Reproducible Code Example
#pip install explainerdashboard
from sklearn.ensemble import RandomForestClassifier
from explainerdashboard import ClassifierExplainer, ExplainerDashboard
from explainerdashboard.datasets import titanic_survive, feature_descriptions
X_train, y_train, X_test, y_test = titanic_survive()
model = RandomForestClassifier(n_estimators=50, max_depth=10).fit(X_train, y_train)
explainer = ClassifierExplainer(model, X_test, y_test,
cats=[''Deck', 'Embarked'],
descriptions=feature_descriptions,
labels=['Not survived', 'Survived'])
ExplainerDashboard(explainer, mode = 'inline',
importances=False,
model_summary=False,
contributions=True,
whatif=False,
shap_dependence=False,
shap_interaction=False,
decision_trees=False).run()
- Labels:
-
Databricks notebook
-
Image
-
Ipython
-
Pip