Skip to content

Error in check_explainer(explainer): For Python support, use precalculate=True in Explainer init #113

Open
@vsteiger

Description

@vsteiger

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?


R:
R-Version 4.1.2
RStudio 2022.07.02
reticulate_1.26 // DALEX: 2.4.2 // DALEXtra: 2.2.1

Python:
Python-Version: 3.9.15 via virtualenv
DALEX 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid ❕This doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions