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 explainer for a function #396

Closed
pbiecek opened this issue Mar 10, 2021 · 1 comment
Closed

add explainer for a function #396

pbiecek opened this issue Mar 10, 2021 · 1 comment
Assignees
Labels
R 🐳 Related to R

Comments

@pbiecek
Copy link
Member

pbiecek commented Mar 10, 2021

Default predict function for a function shall be function(m, x) m(x)
as in this example

DALEX::explain(function(x) x$Age > 30,
                               data = data.frame(Age = c(30, 50), Gender = c("Male", "Female")),
                               predict_function = function(m, x) m(x),
                               y = c(TRUE, TRUE),
                               label = "hello")
@pbiecek pbiecek added the R 🐳 Related to R label Mar 10, 2021
@pbiecek pbiecek self-assigned this Mar 10, 2021
pbiecek added a commit that referenced this issue Mar 18, 2021
@pbiecek
Copy link
Member Author

pbiecek commented Mar 18, 2021

fixed with f966ea9

@pbiecek pbiecek closed this as completed Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R 🐳 Related to R
Projects
None yet
Development

No branches or pull requests

1 participant