Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hparams: Allow sessions without name to pull all run,tag combinations as metrics. #6546

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

bmd3k
Copy link
Contributor

@bmd3k bmd3k commented Aug 15, 2023

Motivation: Sometimes a user is viewing a single experiment and the DataProvider determines that experiment contains exactly one session. In this case the DataProvider will return a session with both empty experiment_id and empty run.

We want this "empty-name session" to represent all runs in the experiment. But we have a bug where the /experiment and /session_group responses do not contain any metrics for the session. We want to instead designate all (run,tag) combinations as separate metrics to include in the /experiment and /session_groups responses.

The first change to get this to work:

  • When generating session names, a session with experiment_id="" and run="" should generate an empty session_name "" (instead of using the somewhat-meaningless input experiment id as the session_name).

The side-effect of the first change is that calls to _find_longest_parent_path() will return "" for all runs passed into it - effectively saying that all runs belong to the "empty-name session". So the second change to get this to work:

  • When _find_longest_parent_path() returns "" instead of None, treat this as a match with "empty-name session" instead of ignoring it.

@bmd3k bmd3k requested a review from yatbear August 15, 2023 20:18
@bmd3k bmd3k merged commit 6627a7f into tensorflow:master Aug 16, 2023
13 checks passed
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Aug 25, 2023
… as metrics. (tensorflow#6546)

Motivation: Sometimes a user is viewing a single experiment and the
DataProvider determines that experiment contains exactly one session. In
this case the DataProvider will return a session with both empty
experiment_id and empty run.

We want this "empty-name session" to represent all runs in the
experiment. But we have a bug where the /experiment and /session_group
responses do not contain any metrics for the session. We want to instead
designate all (run,tag) combinations as separate metrics to include in
the /experiment and /session_groups responses.

The first change to get this to work:

* When generating session names, a session with experiment_id="" and
run="" should generate an empty session_name "" (instead of using the
somewhat-meaningless input experiment id as the session_name).
 
The side-effect of the first change is that calls to
_find_longest_parent_path() will return "" for all runs passed into it -
effectively saying that all runs belong to the "empty-name session". So
the second change to get this to work:

* When _find_longest_parent_path() returns "" instead of None, treat
this as a match with "empty-name session" instead of ignoring it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants