ombhojane / explainableai

Increase interpretability of your models!
https://pypi.org/project/explainableai/
MIT License
28 stars 51 forks source link

TensorFlow Model Support #9

Open ombhojane opened 1 month ago

ombhojane commented 1 month ago

Add support for TensorFlow models in our XAI package. Currently, we only support scikit-learn models.

Approach

Testing

Swish78 commented 1 month ago

I would like to request this issue to be assigned to me. However, I’m having difficulty locating where to add support for TensorFlow models in the XAI package. Could you please provide guidance on which files or modules I should focus on? Thank you!

StunningShield4504 commented 1 month ago

Please assign this issue to me i would like to work upon this.My approach:1.Adding Tensorflow model 2.Check all visualisations 3.Do all necessary calculations

Sakeebhasan123456 commented 1 month ago

hello @ombhojane i saw some problems in the model and i would like to work on it

Known Issues and Solutions

During the development of this project, several issues were encountered. Below are the problems along with their causes and the solutions implemented to address them.

1. SHAP Values Error

2. Low Test Accuracy

3. UserWarning about Feature Names

ombhojane commented 1 month ago

Thank you all for your interest in this issue! This is an important enhancement that requires careful planning. Let me provide some guidance:

Project Structure

The main files you'll need to modify are:

  1. core.py - Update XAIWrapper to handle TensorFlow models
  2. model_interpretability.py - Adapt SHAP calculations for TF models
  3. utils.py - Extend utility functions to support TF models

Requirements

  1. Experience with TensorFlow and scikit-learn
  2. Understanding of model interpretability techniques
  3. Familiarity with Python testing frameworks

Known Challenges

  1. SHAP values calculation differs for deep learning models
  2. Visualization adaptations may be needed
  3. Performance considerations for large models

Would you like to share your experience with TensorFlow and model interpretability? This will help me assign the issue to the best-suited contributor.

ombhojane commented 1 month ago

okayy @Sakeebhasan123456 go ahead

Sakeebhasan123456 commented 1 month ago

Hi @ombhojane i am trying to solve this problem please check also add a pull request

garvender004 commented 1 month ago

Hello @ombhojane I would like to contribute to this project.