When I upload a model (iml Predictor object), I get the following error:
object 'PrediObj' not found
I got the model with following code:
library(iml)
library(mlr)
lrn = makeLearner("regr.ranger")
mod = train(lrn, bh.task)
dat = getTaskData(bh.task)
pred = Predictor$new(mod, data = dat, y = "medv")
saveRDS(pred, file = "test.RDS")a
When I upload a model (iml Predictor object), I get the following error:
object 'PrediObj' not found
I got the model with following code: