-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
HParams: Add new state property to store hparam and metric filters #6553
Conversation
export type HparamFilter = DiscreteFilter | IntervalFilter; | ||
export type MetricFilter = IntervalFilter; | ||
|
||
export interface HparamsAndMetricsFilters { |
There was a problem hiding this comment.
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', () => { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
…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.
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.