1. Learn
  2. /
  3. Courses
  4. /
  5. Explainable AI in Python

Connected

Exercise

Evaluating faithfulness with LIME

You are provided with a LIME explanation for a sample X_instance from the income dataset. Since gender is the most important predictor, you need to change its value and compute faithfulness to determine how well the explanation aligns with the model's behavior for that instance.

Instructions

100 XP
  • Change the gender value to 0 in X_instance.
  • Generate a new_prediction probability.
  • Estimate the faithfulness of LIME's explanation.