tfr.extension.task.RankingDataLoader
Stay organized with collections
Save and categorize content based on your preferences.
A class to load dataset for ranking task.
tfr.extension.task.RankingDataLoader(
params,
context_feature_spec: tfr.extension.task.FeatureSpec
= None,
example_feature_spec: tfr.extension.task.FeatureSpec
= None,
label_spec: Tuple[str, tf.io.FixedLenFeature] = None,
dataset_fn: Optional[Callable[[], tf.data.Dataset]] = None
)
Methods
load
View source
load(
input_context: Optional[tf.distribute.InputContext] = None
) -> tf.data.Dataset
Returns a tf.dataset.Dataset.
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,["# tfr.extension.task.RankingDataLoader\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/extension/task.py#L92-L169) |\n\nA class to load dataset for ranking task. \n\n tfr.extension.task.RankingDataLoader(\n params,\n context_feature_spec: ../../../tfr/extension/task/FeatureSpec = None,\n example_feature_spec: ../../../tfr/extension/task/FeatureSpec = None,\n label_spec: Tuple[str, tf.io.FixedLenFeature] = None,\n dataset_fn: Optional[Callable[[], tf.data.Dataset]] = None\n )\n\nMethods\n-------\n\n### `load`\n\n[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/extension/task.py#L159-L169) \n\n load(\n input_context: Optional[tf.distribute.InputContext] = None\n ) -\u003e tf.data.Dataset\n\nReturns a tf.dataset.Dataset."]]