MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / buildMetricsSettingsState

Function buildMetricsSettingsState

tensorboard/webapp/metrics/testing.ts:47–67  ·  view source on GitHub ↗
(
  overrides?: Partial<MetricsSettings>
)

Source from the content-addressed store, hash-verified

45import {DataTableMode} from '../widgets/data_table/types';
46
47export function buildMetricsSettingsState(
48 overrides?: Partial<MetricsSettings>
49): MetricsSettings {
50 return {
51 cardMinWidth: null,
52 tooltipSort: TooltipSort.NEAREST,
53 ignoreOutliers: false,
54 xAxisType: XAxisType.WALL_TIME,
55 scalarSmoothing: 0.3,
56 hideEmptyCards: true,
57 scalarPartitionNonMonotonicX: false,
58 isTooltipRowsLimitEnabled: false,
59 tooltipRowsLimit: 4,
60 imageBrightnessInMilli: 123,
61 imageContrastInMilli: 123,
62 imageShowActualSize: true,
63 histogramMode: HistogramMode.OFFSET,
64 savingPinsEnabled: true,
65 ...overrides,
66 };
67}
68
69// Since Settings proto has missing fields, we need to build a partial of
70// Settings to be used in tests.

Callers 4

buildBlankStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…