This repository provides a simple demonstration of how to interpret machine learning model predictions by generating permuted images and visualizing their impact on prediction using a heatmap.
- Ensure you have Python and a code editor installed.
- Open your code editor and create a file named
perm_images.py. - Download a sample image and place it in the same directory.
- Run
python perm_images.pyto generate permuted images. - Create a file named
model_interpretation.pyand run it withpython model_interpretation.pyto generate a heatmap. - Create a file named
image_post_processing.pyand run it withpython image_post_processing.pyto highlight regions based on the heatmap.
This simple demonstration helps you understand the significance of different image regions in machine learning model predictions.