Closed FrancescMartiEscofetQC closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.94%. Comparing base (
1580c96
) to head (bbbfe28
). Report is 31 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR fixes an error in the LIME example in case the
SLearner
was used. Inside theSLearner
we convert to numpy arrays to pandas if the base model supports categoricals variables, this raised an error as the categorical variables were not set properly (at train there was the treatment and other categorical variables and at prediction only the treatment was categorical). For this I changed the tutorial to handle this case. Now instead of manually encoding the categorical codes in the numpy array, in the modifiedpredict
function we reconvert to a dataframe with the correct categorical variables.Rendered version
Checklist
CHANGELOG.rst
entry