Skip to content
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

[!] explain() does not work with ordered factors #179

Open
dsnavega opened this issue May 8, 2020 · 0 comments
Open

[!] explain() does not work with ordered factors #179

dsnavega opened this issue May 8, 2020 · 0 comments

Comments

@dsnavega
Copy link

dsnavega commented May 8, 2020

Hi Thomas,

I just noticed the the explain function does not work if the training data (and subsequent test data) has ordered factors.

The explainer stores the feature_type of ordered factors solely as "factor" so the ordering information is lost. It maybe not be important for the logic of the LIME algorithm but breaks the predict function for methods that treat ordered factors differently from unordered factors (i.e. randomForest).

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant