slds-lmu / iml-shiny-summary

Shiny Dashboard showing an interpretation summary for any model
MIT License
3 stars 2 forks source link

Error: object 'PrediObj' not found #4

Closed christophM closed 5 years ago

christophM commented 5 years ago

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
QWERTZ11 commented 5 years ago

Yes, I got it also.

I have separated the codes for "upload" from others and save as "shiny.R" and it works.

christophM commented 5 years ago

Can you make it work for app.R?

QWERTZ11 commented 5 years ago

Yes, I try.

QWERTZ11 commented 5 years ago

done.