Module: tfds.transform
Stay organized with collections
Save and categorize content based on your preferences.
Transform API.
Functions
apply_do_fn(...)
: Applies fn
that can return any number of examples based on an input.
apply_filter(...)
: Filters examples for whom fn
returns true on input_feature
.
apply_fn(...)
: Returns a function that applies the given fn
on the input_feature
.
apply_transformations(...)
remove_feature(...)
: Removes the feature(s) with the given name.
rename_feature(...)
: Renames the feature.
rename_features(...)
: Renames all the feature specified in the given mapping.
Type Aliases
Example
ExampleTransformFn
Key
KeyExample
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 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tfds.transform\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/transform/__init__.py) |\n\nTransform API.\n\nFunctions\n---------\n\n[`apply_do_fn(...)`](../tfds/transform/apply_do_fn): Applies `fn` that can return any number of examples based on an input.\n\n[`apply_filter(...)`](../tfds/transform/apply_filter): Filters examples for whom `fn` returns true on `input_feature`.\n\n[`apply_fn(...)`](../tfds/transform/apply_fn): Returns a function that applies the given `fn` on the `input_feature`.\n\n[`apply_transformations(...)`](../tfds/transform/apply_transformations)\n\n[`remove_feature(...)`](../tfds/transform/remove_feature): Removes the feature(s) with the given name.\n\n[`rename_feature(...)`](../tfds/transform/rename_feature): Renames the feature.\n\n[`rename_features(...)`](../tfds/transform/rename_features): Renames all the feature specified in the given mapping.\n\nType Aliases\n------------\n\n[`Example`](../tfds/transform/Example)\n\n[`ExampleTransformFn`](../tfds/transform/ExampleTransformFn)\n\n[`Key`](../tfds/transform/Key)\n\n[`KeyExample`](../tfds/transform/KeyExample)"]]