Skip to content

Instantly share code, notes, and snippets.

@Lakshmi-1212
Created February 21, 2021 11:31
Show Gist options
  • Save Lakshmi-1212/ed6d0386485bc005135444a7f48ce187 to your computer and use it in GitHub Desktop.
Save Lakshmi-1212/ed6d0386485bc005135444a7f48ce187 to your computer and use it in GitHub Desktop.
Create the Lime Explainer
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