tensorflow / tensorflow/tensorboard

[Feature Request] Generalize pr_curves to visualize any 2D scalar data

Open
#1,110 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:summaries plugin:pr-curves stat:contributions welcome type:feature (new plugin)
Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

The pr_curves plugin is great to visualize any 2D scalar data, but currently it's geared only towards precisio-recall curves. For instance, the summaries have PR-specific fields (e.g. Threshold, Precision, Recall, TP, FP, TN, FN) and the plots have hard-coded default ranges of [-0.05, 1.05]. This plugin can be generalized for any 2D data, by taking X and Y values, rather than Recall and Precision values. I have achieved this by filling in dummy values for some fields (Threshold, TP, FP, TN, FN) and commenting out _defaultXRange and _defaulYRange in tf-pr-curve-card.html. This is useful for plotting metrics of time-series data, i.e. per-time-step metrics vs prediction time steps.
tensorboard_pr_curves

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pr_curves plugin and inspect tf-pr-curve-card.html, especially the default-range handling noted in the issue. Trace how summaries expose PR-specific fields, then define what generic X and Y inputs must provide. Done means arbitrary 2D scalar data can render without dummy PR fields or hard-coded PR ranges.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.