Code Monkey home page Code Monkey logo

Comments (2)

JoaoPBSousa avatar JoaoPBSousa commented on May 22, 2024

Hello @bryancoh ,

Regarding point 1, you are correct. This issue will be fixed in the next push to the repository. Thank you very much for letting us know.

Regarding point 2, the value mentioned was empirically found to work well with our financial dataset. Since we were dealing with a highly unbalanced dataset, the average score for our instances was very low. In our explanations, we focused only on the positive instances, ensuring a significant difference between the baseline and explained instances.

The issue you mentioned has been raised in several other cases, and we are actively working on a solution that will benefit everyone. The main objective of the warning is to prevent explanations that may be derived solely from noise. TimeSHAP (and KernelSHAP) divide the difference in score between the background instance and the explained instance among the features. If this score is too low, there are two possible scenarios: either some features have a substantial positive contribution while others have a substantial negative contribution that cancel each other out, or all explanations have very low values that can be easily affected by the final linear fitting of the SHAP method. The implementation of this check was intended to prevent errors in the second case.

Currently, there is no direct implemented way for users to change the threshold value or entirely skip the check. If you desire this behavior, you would need to modify the source code of TimeSHAP. However, based on the feedback we have received, we are considering implementing two features. We would appreciate your input on these:

  1. Allowing users to define the threshold value instead of it being fixed at 0.1.
  2. Providing an option to skip the check if the user desires.

I hope this answer is helpful. If you have any further questions feel free to ask.

from timeshap.

bryancoh avatar bryancoh commented on May 22, 2024

Thank you for your answer, I will modify the source code for now

from timeshap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.