fzi-forschungszentrum-informatik / TSInterpret

An Open-Source Library for the interpretability of time series classifiers
BSD 3-Clause "New" or "Revised" License
115 stars 8 forks source link

[Q]How can I explain the visualization of TSR on sample? #42

Closed R-Z78 closed 12 months ago

R-Z78 commented 1 year ago

image Dose this image illustrate the variation of feature importance over time? If not, how can I find out the variation of feature importance over time?

Thanks!

JHoelli commented 1 year ago

Hi ,

what the visualization shows you, is that TSR (and the underlying feature attribution method) finds the values of Feature 0 between time steps 12 and 18 for the current example the most relevant for the predicted classification. So the most important time steps seem to be between 12 and 18 (in Feature 0).

The generalization of TSR to identify the overall most important time steps (independent of the features ) - enabling conclusion like "the values between time step X and Y are the most important " and most important features (independent of the time steps) - "Feature 0 is overall the most important" - is currently not implemented in TSInterpret. (If you would find such a feature useful, it can be added. However, it would probably take a few weeks to be implemented.)

Does this help ? If not, a more detailed description of variation of feature importance over time , maybe with an example or a conclusion you want to draw might help me to understand your needs.

R-Z78 commented 12 months ago

Yes! It's very helpful! Thanks a lot!