Module: tfr.data
Stay organized with collections
Save and categorize content based on your preferences.
Input data parsing for tf-ranking library.
Supports the following data formats:
- tf.train.SequenceExample
- tf.train.Example in tf.train.Example.
Functions
build_ranking_dataset(...)
: Builds a ranking tf.dataset with a standard data format.
build_ranking_dataset_with_parsing_fn(...)
: Builds a ranking tf.dataset using the provided parsing_fn
.
build_ranking_serving_input_receiver_fn(...)
: Returns a serving input receiver fn for a standard data format.
build_ranking_serving_input_receiver_fn_with_parsing_fn(...)
: Returns a receiver function with the provided parsing_fn
.
build_sequence_example_serving_input_receiver_fn(...)
: Creates a serving_input_receiver_fn for SequenceExample
inputs.
build_tf_example_serving_input_receiver_fn(...)
: Builds a serving input fn for tensorflow.training.Example
.
make_parsing_fn(...)
: Returns a parsing fn for a standard data format.
parse_from_example_in_example(...)
: Parses an ExampleInExample batch to a feature map.
parse_from_example_list(...)
: Parses an ExampleListWithContext
batch to a feature map.
parse_from_sequence_example(...)
: Parses SequenceExample to feature maps.
parse_from_tf_example(...)
: Parse function to convert tf.train.Example
to feature maps.
read_batched_sequence_example_dataset(...)
: Returns a Dataset
of features from SequenceExample
.
Other Members |
EIE
|
'example_in_example'
|
ELWC
|
'example_list_with_context'
|
SEQ
|
'sequence_example'
|
absolute_import
|
Instance of __future__._Feature
|
division
|
Instance of __future__._Feature
|
print_function
|
Instance of __future__._Feature
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-18 UTC.
[null,null,["Last updated 2023-08-18 UTC."],[],[],null,["# Module: tfr.data\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/data.py) |\n\nInput data parsing for tf-ranking library.\n\nSupports the following data formats:\n\n- tf.train.SequenceExample\n- tf.train.Example in tf.train.Example.\n\nFunctions\n---------\n\n[`build_ranking_dataset(...)`](../tfr/data/build_ranking_dataset): Builds a ranking tf.dataset with a standard data format.\n\n[`build_ranking_dataset_with_parsing_fn(...)`](../tfr/data/build_ranking_dataset_with_parsing_fn): Builds a ranking tf.dataset using the provided `parsing_fn`.\n\n[`build_ranking_serving_input_receiver_fn(...)`](../tfr/data/build_ranking_serving_input_receiver_fn): Returns a serving input receiver fn for a standard data format.\n\n[`build_ranking_serving_input_receiver_fn_with_parsing_fn(...)`](../tfr/data/build_ranking_serving_input_receiver_fn_with_parsing_fn): Returns a receiver function with the provided `parsing_fn`.\n\n[`build_sequence_example_serving_input_receiver_fn(...)`](../tfr/data/build_sequence_example_serving_input_receiver_fn): Creates a serving_input_receiver_fn for `SequenceExample` inputs.\n\n[`build_tf_example_serving_input_receiver_fn(...)`](../tfr/data/build_tf_example_serving_input_receiver_fn): Builds a serving input fn for `tensorflow.training.Example`.\n\n[`make_parsing_fn(...)`](../tfr/data/make_parsing_fn): Returns a parsing fn for a standard data format.\n\n[`parse_from_example_in_example(...)`](../tfr/data/parse_from_example_in_example): Parses an ExampleInExample batch to a feature map.\n\n[`parse_from_example_list(...)`](../tfr/data/parse_from_example_list): Parses an `ExampleListWithContext` batch to a feature map.\n\n[`parse_from_sequence_example(...)`](../tfr/data/parse_from_sequence_example): Parses SequenceExample to feature maps.\n\n[`parse_from_tf_example(...)`](../tfr/data/parse_from_tf_example): Parse function to convert [`tf.train.Example`](https://www.tensorflow.org/api_docs/python/tf/train/Example) to feature maps.\n\n[`read_batched_sequence_example_dataset(...)`](../tfr/data/read_batched_sequence_example_dataset): Returns a `Dataset` of features from `SequenceExample`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ------------- ||\n|-----------------|-----------------------------------|\n| EIE | `'example_in_example'` |\n| ELWC | `'example_list_with_context'` |\n| SEQ | `'sequence_example'` |\n| absolute_import | Instance of `__future__._Feature` |\n| division | Instance of `__future__._Feature` |\n| print_function | Instance of `__future__._Feature` |\n\n\u003cbr /\u003e"]]