Bug in handing over `type` to `predict.fun`?
- Dominant language
- R
- Stars
- 503
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
Hi Christoph,
I may have stumbled on a bug: the documentation for `Predictor` claims that the `type` is handed to `predict.fun`, if both are specified. However, I am trying to use a `predict.fun` (for a random forest from the **randomForest** package) with a type argument that does not have a default, and I get the error message
`Error in (function (object, newdata, type) : `
` argument "type" is missing, with no default`
If I use a default, this default is always used, i.e. changing the `type` argument in `Predictor$new` does not change the prediction behavior. I have to hardcode different predictor functions for different types in order to get them to work with **iml**.
Best, Ulrike
Contributor guide
Assessment
This issue has not been assessed yet.