Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide pdp on What if... tab #46

Closed
raybellwaves opened this issue Dec 10, 2020 · 2 comments
Closed

hide pdp on What if... tab #46

raybellwaves opened this issue Dec 10, 2020 · 2 comments

Comments

@raybellwaves
Copy link
Contributor

Thanks for working on this (#41).

Just tested and the pdp plot remained in the What if... tab. Is they a way to remove it similar to removing it from the Individual Predictions tab?

from explainerdashboard.datasets import (
    titanic_fare,
    titanic_names,
    feature_descriptions,
)
from sklearn.ensemble import RandomForestRegressor
from explainerdashboard import RegressionExplainer, ExplainerDashboard

X_train, y_train, X_test, y_test = titanic_fare()

model = RandomForestRegressor(n_estimators=50, max_depth=5)
model.fit(X_train, y_train)

train_names, test_names = titanic_names()

explainer = RegressionExplainer(
    model,
    X_test,
    y_test,
    cats=["Sex", "Deck", "Embarked"],
    idxs=test_names,
    target="Fare",
    descriptions=feature_descriptions,
    units="$",
)

db = ExplainerDashboard(
    explainer,
    importances=False,
    model_summary=False,
    decision_trees=False,
    no_permutations=True,
    hide_depth=True,
    hide_pdp=True,
)
db.run()
@oegedijk
Copy link
Owner

try hide_whatifpdp=True

@raybellwaves
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants