tensorflow / tensorflow/tensorboard
Edge case: duplicate step counts cause weird smoothing
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
If multiple points share a single step count, then smoothing can become very unrepresentative for a series.
Here's a simple artificial example:

And here's a more complex real world example of this happening:

This happens because the smoothing (a low pass filter) adjusts the smoothed series by a certain amount for every point that it processes. So if multiple points exist inside of a single step, then vertical lines will start to appear. Any data that comes after those vertical lines will be disproportionately influenced by those duplicate points, since they were "counted twice" (or 3 times, or 4, etc) in the smoothing filter.
I'll try to send in a PR to fix this when I have the time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the smoothing low-pass filter used by TensorBoard charts and reproduce the issue with multiple points sharing one step count. Trace how each point affects the smoothed series. Done means duplicate-step points no longer disproportionately influence later data or produce the reported vertical artifacts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100