-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error in check_explainer(explainer): For Python support, use precalculate=True in Explainer init #113
Comments
Hi @vsteiger,
|
Hi @hbaniecki We found the error in the explainer building step in python. We continued in R: explainer1 <- py_load_object("explainer_scikitlearn_precalculateTrue_v02.pickle", pickle = "pickle") class(explainer1)
In R we can access both explainer.y_hat and explainer.residuals and they are not NULL:
Now, when running
|
@vsteiger great! what do you get from explainer$predict_function(explainer$model, explainer$data)
explainer$predict_function(explainer$model, explainer$data[1, ])
explainer$predict_function(explainer$model, explainer$data[1, , drop=FALSE]) Just for context, I ran the example from documentation https://modelstudio.drwhy.ai/articles/ms-r-python-examples.html and it runs OK for me with the same software versions. So maybe to solve this I would need to have exemplary data/model made by you where the error occurs. |
Hi @hbaniecki
For:
We get an error, that we have encountered in Python originally but solved it via formatting:
Regarding the example data due to company restrictions we are not allowed to share any of the data itself |
Yes, but it could be synthetically generated data from |
Following the example from https://modelstudio.drwhy.ai/articles/ms-r-python-examples.html,
We ran a model in python using scikit-learn built an explainer file via dalex and exported it as a pickle file.
This pickle files was loaded in R using reticulate (py_load_object)
explainer <- py_load_object("explainer_scikitlearn_precalculateTrue.pickle", pickle = "pickle")
During building the explainer file we used the flag: precalculate=True
After using modelStudio(explainer, B = 5), we got this error message:
Error in check_explainer(explainer) : For Python support, use precalculate=True in Explainer init
Do you have any idea how to solve this?
The text was updated successfully, but these errors were encountered: