Skip to content

HParams: Add new state property to store hparam and metric filters #6553

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

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

rileyajones
Copy link
Contributor

Motivation for features / changes

Now that the filter dialog is merged #6493 we need to add support for filtering by hparams. However, #6544 changed the way hparam values are read. This change adds a new property to state in which to store dashboard related hparam and metric filters.

See #6488 for the WIP integration with the runs_table_container + tb_data_table -> common_selectors + hparam_selectors.

@rileyajones rileyajones marked this pull request as ready for review August 22, 2023 00:13
@rileyajones rileyajones requested a review from bmd3k August 22, 2023 00:13
export type HparamFilter = DiscreteFilter | IntervalFilter;
export type MetricFilter = IntervalFilter;

export interface HparamsAndMetricsFilters {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only difference between this type name and the one on L32 is where you put the 'And'. That's really confusing. Can we do better?

@@ -630,4 +630,72 @@ describe('hparams/_redux/hparams_reducers_test', () => {
expect(state2.dashboardSessionGroups).toEqual([mockSessionGroup]);
});
});

describe('dashboardHparamFilterAdded', () => {
it('adds entry dashboardFilters', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add another test that contains existing items in hparams and ensures they are not overwritten?


describe('dashboardMetricFilterAdded', () => {
it('adds entry dashboardFilters', () => {
const state = buildHparamsState();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar: Can we add another test that contains existing items in metrics and ensures they are not overwritten?

@rileyajones rileyajones merged commit d190899 into tensorflow:master Aug 22, 2023
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Aug 25, 2023
…ensorflow#6553)

## Motivation for features / changes
Now that the filter dialog is merged tensorflow#6493 we need to add support for
filtering by hparams. However, tensorflow#6544 changed the way hparam values are
read. This change adds a new property to state in which to store
dashboard related hparam and metric filters.

See tensorflow#6488 for the WIP integration with the runs_table_container +
tb_data_table -> common_selectors + hparam_selectors.
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