Skip to content

Commit dea39cd

Browse files
authored
Merge pull request #127 from dhruvesh09/r0.23.0
Replace fairness_indicators.examples with fairness_indicators.documen…
2 parents 9e3311b + 021d5fa commit dea39cd

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Non-Tensorflow Models
5151

5252
## Examples
5353

54-
The [examples](https://github.com/tensorflow/fairness-indicators/tree/master/fairness_indicators/examples) directory contains several examples.
54+
The [examples](https://github.com/tensorflow/fairness-indicators/tree/master/fairness_indicators/documentation/examples) directory contains several examples.
5555

5656
* [Fairness_Indicators_Example_Colab.ipynb](https://github.com/tensorflow/fairness-indicators/blob/master/fairness_indicators/documentation/examples/Fairness_Indicators_Example_Colab.ipynb) gives an overview of Fairness Indicators in [TensorFlow Model Analysis](https://www.tensorflow.org/tfx/guide/tfma) and how to use it with a real dataset. This notebook also goes over [TensorFlow Data Validation](https://www.tensorflow.org/tfx/data_validation/get_started) and [What-If Tool](https://pair-code.github.io/what-if-tool/), two tools for analyzing TensorFlow models that are packaged with Fairness Indicators.
5757
* [Fairness_Indicators_on_TF_Hub.ipynb](https://github.com/tensorflow/fairness-indicators/blob/master/fairness_indicators/documentation/examples/Fairness_Indicators_on_TF_Hub_Text_Embeddings.ipynb) demonstrates how to use Fairness Indicators to compare models trained on different [text embeddings](https://en.wikipedia.org/wiki/Word_embedding). This notebook uses text embeddings from [TensorFlow Hub](https://www.tensorflow.org/hub), TensorFlow's library to publish, discover, and reuse model components.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2019 Google LLC. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.

fairness_indicators/documentation/examples/Fairness_Indicators_Example_Colab.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"import tensorflow_data_validation as tfdv\n",
9292
"from tensorflow_model_analysis.addons.fairness.post_export_metrics import fairness_indicators\n",
9393
"from tensorflow_model_analysis.addons.fairness.view import widget_view\n",
94-
"from fairness_indicators.examples import util\n",
94+
"from fairness_indicators.documentation.examples import util\n",
9595
"\n",
9696
"from witwidget.notebook.visualization import WitConfigBuilder\n",
9797
"from witwidget.notebook.visualization import WitWidget\n"

fairness_indicators/documentation/examples/Fairness_Indicators_on_TF_Hub_Text_Embeddings.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"from tensorflow_model_analysis.addons.fairness.view import widget_view\n",
6161
"from tensorflow_model_analysis.addons.fairness.post_export_metrics import fairness_indicators\n",
6262
"from fairness_indicators import example_model\n",
63-
"from fairness_indicators.examples import util"
63+
"from fairness_indicators.documentation.examples import util"
6464
]
6565
},
6666
{

0 commit comments

Comments
 (0)