Example of how to use MATLAB to produce post-hoc explanations (using Grad-CAM) for image classification tasks.
Explainable AI for Image Classification
This repository shows an example of how to use MATLAB to produce post-hoc explanations -- using Grad-CAM -- for two image classification tasks.
Requirements
- MATLAB 2022b or later
- Deep Learning Toolbox
- Deep Learning Toolbox™ Model for GoogLeNet Network support package
- Parallel Computing Toolbox (only required for training using a GPU)
Suggested steps
- Download or clone the repository.
- Open MATLAB.
- Run the
example.mlxscript and inspect results.
Additional remarks
- You are encouraged to expand and adapt the example to your needs.
- The choice of pretrained network and hyperparameters (learning rate, mini-batch size, number of epochs, etc.) is merely illustrative.
- You are encouraged to (use Experiment Manager app to) tweak those choices and find a better solution.
引用格式
Oge Marques (2026). Explainable AI for Image Classification (https://github.com/ogemarques/xai-image-classification/releases/tag/1.0.2), GitHub. 检索时间: .
| 版本 | 已发布 | 发行说明 | Action |
|---|---|---|---|
| 1.0.2 |
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 存储库。
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 存储库。
