question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function for visualising time series attribution

See original GitHub issue

🚀 Feature

Function for visualising time series along with attribution values, just like captum.attr.visualization.visualize_image_attr does for images.

Motivation

Working with time series a lot, I often copy the same plotting function around between projects, so I think it would be great to have a basic 1D plotting method built-in. Since 1D attributions are prepared the same way as for images (normalisation and choice of sign), it would fit in nicely with the existing code. I would be happy to submit a PR with my own (adapted) plotting function, but probably best to first discuss the scope and need.

Pitch

A built-in plotting function would simplify and speed up the model development cycle. But besides convenience, it could also be valuable to new users, since the applicability of Captum to time series is somewhat undercommunicated 😄

Alternatives

Users write their own custom plotting functions. This is likely to happen anyway because of the big variation in different time series’ length, number of channels, etc., but in that case, a built-in function is a good starting point.

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
smaelandcommented, Jul 9, 2022

Hi @ic085908, here is the script I used to produce the plots shown in #980: visualize_synthetic_data.py (data is randomly generated, so it won’t look exactly identical). Let me know if you run into any problems or find things that could be improved

0reactions
smaelandcommented, Jul 9, 2022

Great! I’ll close this then, since the corresponding PR is merged now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time Series Model Attribution Visualizations as Explanations
Attributions are a common local explanation technique for deep learning models on single samples as they are easily extractable and ...
Read more >
The Complete Guide to Time Series Data - Clarify.io
What is time series and what are the databases, visualization tools & techniques. Learn how to analyse and work with time series data....
Read more >
Time Series Data Visualization with Python
Visualization plays an important role in time series analysis and forecasting. Plots of the raw sample data can provide valuable diagnostics ...
Read more >
Time Series Model Attribution Visualizations as Explanations
Attributions are a common local explanation technique for deep learning models on single samples as they are easily extractable and ...
Read more >
21 Ways to Visualize a Timeseries - Open Risk
Visual Map : Using a map (t,v)→(x,y), where x is the spatial dimension representing time and y is the spatial dimension representing value....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found