# Model Explainer

**URL:** <https://community.deeplearning.ai/t/model-explainer/140899>\
**Category:** AI Discussions\
**Created:** [June 17, 2022, 8:58am UTC](https://community.deeplearning.ai/t/model-explainer/140899 "2022-06-17T08:58:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugenis](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eugenis](https://community.deeplearning.ai/u/eugenis)\
**Post date:** [June 17, 2022, 8:58am UTC](https://community.deeplearning.ai/t/model-explainer/140899/1 "2022-06-17T08:58:49Z")

</div>

I had an idea to build a model explainer that can potentially explain any model. The explainer explains a given model by estimating the contributive weight from each feature to the final prediction value. The contributive weight can be estimated even for non-linear model.

This idea is inspired from Riemann Sum, a numerical approximation of definite integral.

For me to explain in details, it requires some math. I wonder if this is the right platform to share, and if anyone is interested in this topic?

---

<div class="post-metadata">

**Author:** ![Christian\_Simonis](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/christian_simonis/32/142583_2.png) [@Christian\_Simonis](https://community.deeplearning.ai/u/Christian_Simonis)\
**Post date:** [June 17, 2022, 10:03am UTC](https://community.deeplearning.ai/t/model-explainer/140899/2 "2022-06-17T10:03:56Z")

</div>

This is an interesting approach. Regarding XAI this repo might be relevant for you. Feel free to take a look:

- [GitHub - SelfExplainML/PiML-Toolbox: PiML (Python Interpretable Machine Learning) toolbox for model development and validation](https://github.com/SelfExplainML/PiML-Toolbox)
- e.g. [Google Colab](https://colab.research.google.com/github/SelfExplainML/PiML-Toolbox/blob/main/examples/Example_CaliforniaHousing.ipynb)

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![eugenis](https://avatars.discourse-cdn.com/v4/letter/e/9fc29f/32.png) [@eugenis](https://community.deeplearning.ai/u/eugenis)\
**Post date:** [June 17, 2022, 11:16am UTC](https://community.deeplearning.ai/t/model-explainer/140899/3 "2022-06-17T11:16:53Z")

</div>

PiML seems to support only the explainability of 3 selected models.

I have written some notes of my idea here:

[Gradient Tracking Explainer](http://ngpeijiun.github.io/#/idea/idea-1-gradient-tracking-explainer)

With a demonstration of simple Python code at the end of the notes.

I may not have explained the idea clearly, let me any part of the notes is not clear or confusing.

I would like to hear comments and feedback from anyone who are interested in this topic.
