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

Connected

Exercise

Explaining food image predictions

You have a model that classifies food, and your task is to use LIME to identify the regions the model mostly focuses on while making its prediction for the image below.

The model responsible for predictions, the model_predict function and the sample image shown below are pre-loaded for you.

Image for fries

Instructions

100 XP
  • Create a LIME image explainer named explainer.
  • Generate an explanation for the model's prediction on the given image.
  • Extract the areas of interest from the image based on the model's explanation.