Skip to content

Commit

Permalink
Use '_' instead of '/' in feature names to avoid potential clash with
Browse files Browse the repository at this point in the history
namescope separator.

PiperOrigin-RevId: 299018918
  • Loading branch information
ananth1998 authored and tensorflow-extended-team committed Mar 5, 2020
1 parent 4c8c0fe commit 8e60b15
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
* The ImporterNode now allows specification of general artifact properties.
* Added 'tfx_executor', 'tfx_version' and 'tfx_py_version' labels for CAIP,
BQML and Dataflow jobs submitted from TFX components.
* Use '_' instead of '/' in feature names of several examples to avoid
potential clash with namescope separator.


### Deprecations

Expand Down
4 changes: 2 additions & 2 deletions tfx/examples/mnist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Here is short summary of the example codes, status and known restrictions:

* The dataset included in this example consists of a selection of 1000 records
from the MNIST dataset, converted to tfrecord format. Each record is
a tf.Example with 2 columns of data: 'image/floats' representing
the 28x28 image as 784 float values, and 'image/class' representing
a tf.Example with 2 columns of data: 'image_floats' representing
the 28x28 image as 784 float values, and 'image_class' representing
the label with values [0-9] corresponding to decimal digit in the image.

For a detailed description of tf.Example and TFRecord see
Expand Down
Binary file modified tfx/examples/mnist/data/mnist.tfrecord
Binary file not shown.
2 changes: 1 addition & 1 deletion tfx/examples/mnist/mnist_pipeline_native_keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _create_pipeline(pipeline_name: Text, pipeline_root: Text, data_root: Text,
# Uses TFMA to compute an evaluation statistics over features of a model and
# perform quality validation of a candidate model (compared to a baseline).
eval_config = tfma.EvalConfig(
model_specs=[tfma.ModelSpec(label_key='image/class')],
model_specs=[tfma.ModelSpec(label_key='image_class')],
slicing_specs=[tfma.SlicingSpec()],
metrics_specs=[
tfma.MetricsSpec(
Expand Down
4 changes: 2 additions & 2 deletions tfx/examples/mnist/mnist_utils_native_keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

# MNIST dataset consists of an image of the handwritten digits,
# and it's label which is the class indicating digits 0 through 9.
_IMAGE_KEY = 'image/floats'
_LABEL_KEY = 'image/class'
_IMAGE_KEY = 'image_floats'
_LABEL_KEY = 'image_class'


def _transformed_name(key):
Expand Down

0 comments on commit 8e60b15

Please sign in to comment.