Comments (2)
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:
- Allowing users to define the threshold value instead of it being fixed at 0.1.
- 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.
Thank you for your answer, I will modify the source code for now
from timeshap.
Related Issues (20)
- Array indexing with list of strings. HOT 1
- Doubts on provided notebook: dataset format, model configuration HOT 10
- TIMESHAP without pruning HOT 1
- local_event report HOT 4
- How does TimeShap handle missing values (NA)? HOT 9
- global_explainer broken? HOT 1
- will it work for Tensorflow HOT 2
- Does the plot demonstrate that when my feature has a high value, the output either increases or decreases, or vice versa? HOT 2
- Can we wrap any other model than RNN like for transformer networks? HOT 2
- BlockRNN for regression
- Import Error: cannot import name 'Kernel' HOT 2
- Circular Importing in ARem_TF.ipynb
- UnicodeEncodeError: 'charmap' codec can't encode character '\u2264' in position 30: character maps to <undefined> HOT 1
- Is timeshap applicable to the DeepAR model of mxnet?
- Function to get expected value HOT 1
- Add LogitLink in timeshapkernel.
- outputs at all time steps?
- About part of input in the next step is the output of current step
- Lack support for shap > 0.42.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timeshap.