timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
5.15k stars 643 forks source link

TSAI Explainability #771

Open Diptendra opened 1 year ago

Diptendra commented 1 year ago

Could you please add an example of how to use explainability using InceptionTimePlus? I'm not able to figure our the error.

TypeError: conv1d() received an invalid combination of arguments - got (numpy.ndarray, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:

Diptendra commented 1 year ago

guys could you help me please?

vrodriguezf commented 1 year ago

Can you give more context?

Diptendra commented 1 year ago

Is there an example Jupyter notebook that shows how to use these explainability functions - get_attribution_map() and get_acts_and_grads(), with InceptionTime model?

Also it would be great if there is a document that shows how to interpret the output from both the functions. Does that makes sense?

Two explainability functions are documented here.

vrodriguezf commented 1 year ago

With InceptionTimePlus, you can call get_acts_and_grads with the module 'backbone' and will get the activations of that layer for any input x that you pass.

oguiza commented 1 year ago

Hi @Diptendra, Please, take a look at this notebook. You may find it helpful.