Skip to content

Commit

Permalink
Update documentation for new TFT Transforms (#31565)
Browse files Browse the repository at this point in the history
* Update documentation for new TFT Transforms

* narrow versioning scope
  • Loading branch information
jrmccluskey authored Jun 12, 2024
1 parent 7732e11 commit 9c80b81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sdks/python/apache_beam/ml/transforms/tft.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@
'ComputeAndApplyVocabulary',
'ScaleToZScore',
'ScaleTo01',
'ScaleToGaussian',
'ApplyBuckets',
'ApplyBucketsWithInterpolation',
'Bucketize',
'TFIDF',
'TFTOperation',
'ScaleByMinMax',
'NGrams',
'BagOfWords',
'HashStrings',
'DeduplicateTensorPerRow',
]

# Register the expected input types for each operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ available transforms, see the [Transforms](#transforms) section on this page.
## Support and limitations {#support}

- Available in the Apache Beam Python SDK versions 2.53.0 and later.
- Supports Python 3.8, 3.9, and 3.10.
- Supports Python 3.8, 3.9, 3.10, and 3.11
- Only available for pipelines that use [default windows](/documentation/programming-guide/#single-global-window).

## Transforms {#transforms}
Expand Down Expand Up @@ -74,11 +74,16 @@ TensorFlow documentation.
| Transform name | Description |
| ------- | ---------------|
| ApplyBuckets | See [`tft.apply_buckets`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/apply_buckets) in the TensorFlow documentation. |
| ApplyBucketsWithInterpolation | See [`tft.apply_buckets_with_interpolation`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/apply_buckets_with_interpolation) in the TensorFlow documentation. |
| BagOfWords | See [`tft.bag_of_words`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/bag_of_words) in the TensorFlow documentation. |
| Bucketize | See [`tft.bucketize`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/bucketize) in the TensorFlow documentation. |
| ComputeAndApplyVocabulary | See [`tft.compute_and_apply_vocabulary`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/compute_and_apply_vocabulary) in the TensorFlow documentation. |
| DeduplicateTensorPerRow | See [`tft.deduplicate_tensor_per_row`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/deduplicate_tensor_per_row) in the TensorFlow documentation. |
| HashStrings | See [`tft.hash_strings`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/hash_strings) in the TensorFlow documentation. |
| NGrams | See [`tft.ngrams`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/ngrams) in the TensorFlow documentation. |
| ScaleByMinMax | See [`tft.scale_by_min_max`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/scale_by_min_max) in the TensorFlow documentation. |
| ScaleTo01 | See [`tft.scale_to_0_1`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/scale_to_0_1) in the TensorFlow documentation. |
| ScaleToGaussian | See [`tft.scale_to_gaussian`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/scale_to_gaussian) in the TensorFlow documentation. |
| ScaleToZScore | See [`tft.scale_to_z_score`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/scale_to_z_score) in the TensorFlow documentation. |
| TFIDF | See [`tft.tfidf`](https://www.tensorflow.org/tfx/transform/api_docs/python/tft/tfidf) in the TensorFlow documentation. |:
{{< /table >}}
Expand Down

0 comments on commit 9c80b81

Please sign in to comment.