Created
February 21, 2021 11:31
-
-
Save Lakshmi-1212/ed6d0386485bc005135444a7f48ce187 to your computer and use it in GitHub Desktop.
Create the Lime Explainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lime.lime_tabular import LimeTabularExplainer | |
# Create the Lime Explainer for tabular data | |
explainer = LimeTabularExplainer(X_train.values, | |
mode='classification',feature_names=X_train.columns,class_names=model.classes_ ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment