Skip to content

Commit bbf2b4d

Browse files
jindalshivam09tf-model-analysis-team
authored and
tf-model-analysis-team
committed
Updating vulcanized template
PiperOrigin-RevId: 276636881
1 parent 3d720d5 commit bbf2b4d

File tree

4 files changed

+760
-658
lines changed

4 files changed

+760
-658
lines changed

LICENSE

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2017, The TensorFlow Model Analysis Authors.
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -198,4 +198,58 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.
202+
203+
--------------------------------------------------------------------------------
204+
MIT
205+
The MIT License (MIT)
206+
207+
Copyright (c) 2014-2015, Jon Schlinkert.
208+
209+
Permission is hereby granted, free of charge, to any person obtaining a copy
210+
of this software and associated documentation files (the "Software"), to deal
211+
in the Software without restriction, including without limitation the rights
212+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
213+
copies of the Software, and to permit persons to whom the Software is
214+
furnished to do so, subject to the following conditions:
215+
216+
The above copyright notice and this permission notice shall be included in
217+
all copies or substantial portions of the Software.
218+
219+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
220+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
221+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
222+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
223+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
224+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
225+
THE SOFTWARE.
226+
227+
228+
--------------------------------------------------------------------------------
229+
BSD-3-Clause
230+
Copyright (c) 2016, Daniel Wirtz All rights reserved.
231+
232+
Redistribution and use in source and binary forms, with or without
233+
modification, are permitted provided that the following conditions are
234+
met:
235+
236+
* Redistributions of source code must retain the above copyright
237+
notice, this list of conditions and the following disclaimer.
238+
* Redistributions in binary form must reproduce the above copyright
239+
notice, this list of conditions and the following disclaimer in the
240+
documentation and/or other materials provided with the distribution.
241+
* Neither the name of its author, nor the names of its contributors
242+
may be used to endorse or promote products derived from this software
243+
without specific prior written permission.
244+
245+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
246+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
247+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
248+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
249+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
250+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
251+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
252+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
253+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
254+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
255+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

tensorflow_model_analysis/addons/fairness/frontend/fairness-tensorboard-container/fairness-tensorboard-container-template.html

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -43,42 +43,40 @@
4343
slicing-metrics="[[slicingMetrics_]]">
4444
</fairness-nb-container>
4545

46-
<div class="center" slot="center">
47-
<template is="dom-if" if="[[!slicingMetrics_ || !slicingMetrics_.length]]">
48-
<div class="no-data-warning">
49-
<h3>No fairness evaluation data was found.</h3>
50-
<p>Probable causes:</p>
51-
<ul>
52-
<li>You haven’t written any evaluation data to your event files.</li>
53-
<li>Tensorboard might be looking for your event files, please wait for few seconds.</li>
54-
<li>TensorBoard can’t find your event files.</li>
55-
<li>Selected evaluation run doesn't contain any fairness evaluation related data.</li>
56-
</ul>
46+
<template is="dom-if" if="[[!slicingMetrics_.length]]">
47+
<div class="no-data-warning">
48+
<h3>No fairness evaluation data was found.</h3>
49+
<p>Probable causes:</p>
50+
<ul>
51+
<li>You haven’t written any evaluation data to your event files.</li>
52+
<li>Tensorboard might be looking for your event files, please wait for few seconds.</li>
53+
<li>TensorBoard can’t find your event files.</li>
54+
<li>Selected evaluation run doesn't contain any fairness evaluation related data.</li>
55+
</ul>
5756

58-
<p>
59-
If you’re new to using TensorBoard, and want to find out how to
60-
add data and set up your event files, check out the Fairness Indicators
61-
for Tensorboard
62-
<a
63-
href="https://www.tensorflow.org/tensorboard/fairness_indicators" target="_blank"
64-
>tutorial</a
65-
>
66-
and Fairness Indicators
67-
<a
68-
href="https://github.com/tensorflow/fairness-indicators/blob/master/README.md"
69-
target="_blank">README</a
70-
>.
71-
</p>
57+
<p>
58+
If you’re new to using TensorBoard, and want to find out how to
59+
add data and set up your event files, check out the Fairness Indicators
60+
for Tensorboard
61+
<a
62+
href="https://www.tensorflow.org/tensorboard/fairness_indicators" target="_blank"
63+
>tutorial</a
64+
>
65+
and Fairness Indicators
66+
<a
67+
href="https://github.com/tensorflow/fairness-indicators/blob/master/README.md"
68+
target="_blank">README</a
69+
>.
70+
</p>
7271

73-
<p>
74-
If you think TensorBoard is configured properly, please see the section of the
75-
<a href="https://github.com/tensorflow/tensorboard/blob/master/README.md#my-tensorboard-isnt-showing-any-data-whats-wrong"
76-
target="_blank">README</a>
77-
devoted to missing data problems and consider filing an issue on GitHub.
78-
</p>
79-
</div>
80-
</template>
81-
</div>
72+
<p>
73+
If you think TensorBoard is configured properly, please see the section of the
74+
<a href="https://github.com/tensorflow/tensorboard/blob/master/README.md#my-tensorboard-isnt-showing-any-data-whats-wrong"
75+
target="_blank">README</a>
76+
devoted to missing data problems and consider filing an issue on GitHub.
77+
</p>
78+
</div>
79+
</template>
8280
</div>
8381
`;
8482
export {template};

tensorflow_model_analysis/addons/fairness/frontend/fairness-tensorboard-container/fairness-tensorboard-container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class FairnessTensorboardContainer extends SelectEventMixin
103103
* ]
104104
* @private {!Array<!Object>}
105105
*/
106-
slicingMetrics_: {type: Array, notify: true},
106+
slicingMetrics_: {type: Array, notify: true, value: []},
107107
};
108108
}
109109

0 commit comments

Comments
 (0)