45
45
< link rel ="import " href ="../tf-tensorboard/plugin-dialog.html ">
46
46
< link rel ="import " href ="../tf-tensorboard/registry.html ">
47
47
< link rel ="import " href ="../vz-bar-chart/vz-bar-chart.html ">
48
- < link rel ="import " href ="../vz-line-chart /vz-line-chart .html ">
48
+ < link rel ="import " href ="../vz-line-chart2 /vz-line-chart2 .html ">
49
49
< link rel ="import " href ="./tf-confusion-matrix.html ">
50
50
< link rel ="import " href ="./tf-inference-viewer.html ">
51
51
< link rel ="import " href ="../facets-dive/components/facets-dive/facets-dive.html ">
76
76
- - wit- color - gray300: # DADCE0 ;
77
77
}
78
78
79
+ [hidden ] {
80
+ display : none !important ;
81
+ }
82
+
79
83
# classification {
80
84
width : 40% ;
81
85
}
404
408
background : white;
405
409
}
406
410
407
- : host vz-line-chart {
411
+ : host vz-line-chart2 {
408
412
margin : 12px 12px 12px 24px ;
409
413
height : 180px ;
410
414
width : 300px ;
@@ -1228,7 +1232,7 @@ <h2>Show similarity to selected datapoint</h2>
1228
1232
< paper-radio-button class ="dist-radio " name ="L2 "> L2</ paper-radio-button >
1229
1233
</ paper-radio-group >
1230
1234
< paper-dropdown-menu label ="Apply to datapoints visualization " class ="threshold-dropdown distance-vis-dropdown ">
1231
- < paper-listbox class ="dropdown-content " selected ="{{facetDistSetting}} " attr-for-selected ="name ">
1235
+ < paper-listbox slot ="dropdown-content " selected ="{{facetDistSetting}} " attr-for-selected ="name ">
1232
1236
< paper-item name ="colorBy "> Color By</ paper-item >
1233
1237
< paper-item name ="horizontalFacet "> X-Axis Binning</ paper-item >
1234
1238
< paper-item name ="verticalFacet "> Y-Axis Binning</ paper-item >
@@ -1354,7 +1358,7 @@ <h2>Show similarity to selected datapoint</h2>
1354
1358
< paper-input value ="{{featureSearchValue}} " label ="Search features "
1355
1359
class ="datapoint-control-filter-input feature-search-input "
1356
1360
disabled$ ="[[!hasSelected(selectedExampleAndInference)]] " no-label-float >
1357
- < iron-icon icon ="icons:search " prefix > </ iron-icon >
1361
+ < iron-icon icon ="icons:search " slot =" prefix " > </ iron-icon >
1358
1362
</ paper-input >
1359
1363
</ div >
1360
1364
< div class ="datapoint-right-controls-holder ">
@@ -1543,7 +1547,7 @@ <h2>Show similarity to selected datapoint</h2>
1543
1547
< template is ="dom-if " if ="[[shouldShowLabelDropdown_(stats)]] ">
1544
1548
< div class ="flex ">
1545
1549
< paper-dropdown-menu label ="Ground Truth Feature " class ="threshold-dropdown ">
1546
- < paper-listbox class ="dropdown-content " selected ="{{selectedLabelFeature}} " attr-for-selected ="name ">
1550
+ < paper-listbox slot ="dropdown-content " selected ="{{selectedLabelFeature}} " attr-for-selected ="name ">
1547
1551
< template is ="dom-repeat " items ="[[getFeatureList_(stats)]] ">
1548
1552
< paper-item name ="[[item]] "> [[getFeatureName_(item)]]</ paper-item >
1549
1553
</ template >
@@ -1593,7 +1597,7 @@ <h2>Show similarity to selected datapoint</h2>
1593
1597
< template is ="dom-if " if ="[[shouldShowFeatureDropdown_(stats)]] ">
1594
1598
< div class ="flex ">
1595
1599
< paper-dropdown-menu label ="Slice by " class ="threshold-dropdown ">
1596
- < paper-listbox class ="dropdown-content " selected ="{{selectedBreakdownFeature}} " attr-for-selected ="name ">
1600
+ < paper-listbox slot ="dropdown-content " selected ="{{selectedBreakdownFeature}} " attr-for-selected ="name ">
1597
1601
< template is ="dom-repeat " items ="[[getFeatureList_(stats)]] ">
1598
1602
< paper-item name ="[[item]] "> [[getFeatureName_(item)]]</ paper-item >
1599
1603
</ template >
@@ -1609,7 +1613,7 @@ <h2>Show similarity to selected datapoint</h2>
1609
1613
< div class ="flex ">
1610
1614
< template is ="dom-if " if ="[[shouldShowSecondFeatureDropdown_(selectedBreakdownFeature)]] ">
1611
1615
< paper-dropdown-menu label ="Slice by (secondary) " class ="threshold-dropdown ">
1612
- < paper-listbox class ="dropdown-content " selected ="{{selectedSecondBreakdownFeature}} " attr-for-selected ="name ">
1616
+ < paper-listbox slot ="dropdown-content " selected ="{{selectedSecondBreakdownFeature}} " attr-for-selected ="name ">
1613
1617
< template is ="dom-repeat " items ="[[getFeatureList_(stats)]] ">
1614
1618
< paper-item name ="[[item]] "> [[getFeatureName_(item)]]</ paper-item >
1615
1619
</ template >
@@ -1738,7 +1742,7 @@ <h2>Show similarity to selected datapoint</h2>
1738
1742
</ paper-icon-button >
1739
1743
</ div >
1740
1744
< paper-dropdown-menu label ="Sort by " class ="threshold-dropdown perf-table-sort-menu ">
1741
- < paper-listbox class ="dropdown-content " selected ="{{selectedFeatureSort}} " attr-for-selected ="name ">
1745
+ < paper-listbox slot ="dropdown-content " selected ="{{selectedFeatureSort}} " attr-for-selected ="name ">
1742
1746
< template is ="dom-repeat " items ="[[getFeatureSortBy(modelType, multiClass)]] ">
1743
1747
< paper-item name ="[[item]] "> [[item]]</ paper-item >
1744
1748
</ template >
@@ -1788,7 +1792,7 @@ <h2>Show similarity to selected datapoint</h2>
1788
1792
< div class ="perf-table-threshold ">
1789
1793
< template is ="dom-repeat " items ="{{featureValueThreshold.threshold}} ">
1790
1794
< paper-slider class$ ="[[getSliderClass(index)]] " editable =true min ="0 " max ="1 " step ="0.01 " immediate-value ="{{item.threshold}} "
1791
- value ="[[item.threshold]] " on-value-changed ="refreshInferencesNoRegen_ " on-down ="resetOptimizationSelected_ ">
1795
+ value ="[[item.threshold]] " on-value-changed ="refreshInferencesNoRegen_ " on-immediate-value-changed =" refreshInferencesNoRegen_ " on- down ="resetOptimizationSelected_ ">
1792
1796
</ paper-slider >
1793
1797
</ template >
1794
1798
</ div >
@@ -1835,10 +1839,10 @@ <h2>Show similarity to selected datapoint</h2>
1835
1839
</ div >
1836
1840
< div class ="roc-x-label "> False positive rate</ div >
1837
1841
< div class ="roc-y-label "> True positive rate</ div >
1838
- < vz-line-chart id ="[[getPrChartId(index)]] " class ="pr-line-chart "
1842
+ < vz-line-chart2 id ="[[getPrChartId(index)]] " class ="pr-line-chart "
1839
1843
x-axis-formatter ="[[getSimpleAxisFormatter(axisPrecision)]] "
1840
1844
y-axis-formatter ="[[getSimpleAxisFormatter(axisPrecision)]] ">
1841
- </ vz-line-chart >
1845
+ </ vz-line-chart2 >
1842
1846
</ div >
1843
1847
</ template >
1844
1848
</ div >
@@ -1860,7 +1864,7 @@ <h2>Show similarity to selected datapoint</h2>
1860
1864
< div class ="perf-table-threshold ">
1861
1865
< template is ="dom-repeat " items ="{{overallThresholds}} ">
1862
1866
< paper-slider class$ ="[[getSliderClass(index)]] " editable =true min ="0 " max ="1 " step ="0.01 " immediate-value ="{{item.threshold}} "
1863
- value ="[[item.threshold]] " on-value-changed ="refreshInferencesNoRegen_ " on-down ="resetOptimizationSelected_ ">
1867
+ value ="[[item.threshold]] " on-value-changed ="refreshInferencesNoRegen_ " on-immediate-value-changed =" refreshInferencesNoRegen_ " on- down ="resetOptimizationSelected_ ">
1864
1868
</ paper-slider >
1865
1869
</ template >
1866
1870
</ div >
@@ -1906,10 +1910,10 @@ <h2>Show similarity to selected datapoint</h2>
1906
1910
</ div >
1907
1911
< div class ="roc-x-label "> False positive rate</ div >
1908
1912
< div class ="roc-y-label "> True positive rate</ div >
1909
- < vz-line-chart id ="prchart " class ="pr-line-chart "
1913
+ < vz-line-chart2 id ="prchart " class ="pr-line-chart "
1910
1914
x-axis-formatter ="[[getSimpleAxisFormatter(axisPrecision)]] "
1911
1915
y-axis-formatter ="[[getSimpleAxisFormatter(axisPrecision)]] ">
1912
- </ vz-line-chart >
1916
+ </ vz-line-chart2 >
1913
1917
</ div >
1914
1918
</ template >
1915
1919
</ div >
@@ -3474,6 +3478,7 @@ <h2>Show similarity to selected datapoint</h2>
3474
3478
else if ( selection == 'equalopp' ) {
3475
3479
this . equalOppoClicked_ ( ) ;
3476
3480
}
3481
+ this . updateInferenceStats_ ( true ) ;
3477
3482
} ,
3478
3483
3479
3484
costRatioChanged_ : function ( ) {
@@ -4965,7 +4970,7 @@ <h2>Show similarity to selected datapoint</h2>
4965
4970
4966
4971
const holder = document . createElement ( 'div' ) ;
4967
4972
holder . classList . add ( 'pd-holder' ) ;
4968
- const chart = document . createElement ( 'vz-line-chart ' ) ;
4973
+ const chart = document . createElement ( 'vz-line-chart2 ' ) ;
4969
4974
const colorScale = [ ] ;
4970
4975
const thresholdSeries = [ ] ;
4971
4976
const valueFormatter = vz_chart_helpers . multiscaleFormatter (
0 commit comments