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

add default title to break_down plot #67

Closed
pbiecek opened this issue Jan 24, 2020 · 0 comments
Closed

add default title to break_down plot #67

pbiecek opened this issue Jan 24, 2020 · 0 comments
Labels
Milestone

Comments

@pbiecek
Copy link
Member

@pbiecek pbiecek commented Jan 24, 2020

The plot function for break_down objects has no title.

We should:

  1. add default title Break Down profile
  2. add default subtitle created for the XXX model, where the XXX is extracted from the explainer (explainer$label). (Note that the plot function may take multiple explainers !!! all names shall be added)

Here is an example

library("DALEX")
library("iBreakDown")
titanic <- na.omit(titanic)
titanic_small <- titanic[sample(1:nrow(titanic), 500), c(1,2,6,9)]
model_titanic_glm <- glm(survived == "yes" ~ gender + age + fare,  data = titanic_small, family = "binomial")
explain_titanic_glm <- explain(model_titanic_glm,   data = titanic_small[,-9],   y = titanic_small$survived == "yes")
bd_rf <- break_down(explain_titanic_glm, titanic_small[1, ])
plot(bd_rf, max_features = 3)
@pbiecek pbiecek added this to the DALEX 1.0 milestone Jan 24, 2020
pbiecek pushed a commit that referenced this issue Mar 21, 2020
* added title management to plot_breakdown and plot_break_down_uncertainty

* fixed documentation

* added title and subtitle as explicit arguments

* spellfix

* fixed doc
pbiecek added a commit that referenced this issue Mar 21, 2020
# By MrDomani
# Via GitHub
* 'master' of https://github.com/pbiecek/breakDown2:
  Fixed issue #67 (#71)
pbiecek added a commit that referenced this issue Mar 21, 2020
This reverts commit 57d3e25.
pbiecek added a commit that referenced this issue Mar 22, 2020
@pbiecek pbiecek closed this Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.