[!] explain() does not work with ordered factors
dsnavega opened this issue · comments
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