Skip to content

Commit 9db2c38

Browse files
Merge pull request #790 from habernal:master
PiperOrigin-RevId: 258808857
2 parents 092a4b8 + 01626c5 commit 9db2c38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tensorflow_datasets/core/dataset_info.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,12 @@ def __init__(self,
109109
features: `tfds.features.FeaturesDict`, Information on the feature dict
110110
of the `tf.data.Dataset()` object from the `builder.as_dataset()`
111111
method.
112-
supervised_keys: `tuple`, Specifies the input feature and the label for
113-
supervised learning, if applicable for the dataset.
112+
supervised_keys: `tuple` of `(input_key, target_key)`, Specifies the
113+
input feature and the label for supervised learning, if applicable for
114+
the dataset. The keys correspond to the feature names to select in
115+
`info.features`. When calling `tfds.core.DatasetBuilder.as_dataset()`
116+
with `as_supervised=True`, the `tf.data.Dataset` object will yield
117+
the (input, target) defined here.
114118
urls: `list(str)`, optional, the homepage(s) for this dataset.
115119
citation: `str`, optional, the citation to use for this dataset.
116120
metadata: `tfds.core.Metadata`, additonal object which will be

0 commit comments

Comments
 (0)