TensorFlow Transform tft.beam.experimental
Module¶
tensorflow_transform.beam.experimental
¶
Module level imports for tensorflow_transform.beam.experimental.
Classes¶
PTransformAnalyzer
¶
Bases: PTransform
A PTransform analyzer's base class which provides a temp dir if needed.
Source code in tensorflow_transform/beam/experimental/analyzer_impls.py
Attributes¶
Functions¶
annotations
¶
default_label
¶
default_type_hints
¶
Source code in apache_beam/transforms/ptransform.py
display_data
¶
Returns the display data associated to a pipeline component.
It should be reimplemented in pipeline components that wish to have static display data.
RETURNS | DESCRIPTION |
---|---|
Dict[str, Any]: A dictionary containing |
|
The value might be an integer, float or string value; a |
|
class: |
|
(e.g. short value, label, url); or a :class: |
|
that has more display data that should be picked up. For example:: { 'key1': 'string_value', 'key2': 1234, 'key3': 3.14159265, 'key4': DisplayDataItem('apache.org', url='http://apache.org'), 'key5': subComponent } |
Source code in apache_beam/transforms/display.py
expand
¶
from_runner_api
classmethod
¶
Source code in apache_beam/transforms/ptransform.py
get_resource_hints
¶
Source code in apache_beam/transforms/ptransform.py
get_type_hints
¶
Gets and/or initializes type hints for this object.
If type hints have not been set, attempts to initialize type hints in this order: - Using self.default_type_hints(). - Using self.class type hints.
Source code in apache_beam/typehints/decorators.py
get_windowing
¶
Returns the window function to be associated with transform's output.
By default most transforms just return the windowing function associated with the input PCollection (or the first input if several).
Source code in apache_beam/transforms/ptransform.py
infer_output_type
¶
register_urn
classmethod
¶
Source code in apache_beam/transforms/ptransform.py
runner_api_requires_keyed_input
¶
to_runner_api
¶
Source code in apache_beam/transforms/ptransform.py
to_runner_api_parameter
¶
Source code in apache_beam/transforms/ptransform.py
to_runner_api_pickled
¶
Source code in apache_beam/transforms/ptransform.py
type_check_inputs
¶
type_check_inputs_or_outputs
¶
Source code in apache_beam/transforms/ptransform.py
type_check_outputs
¶
with_input_types
¶
Annotates the input type of a :class:PTransform
with a type-hint.
PARAMETER | DESCRIPTION |
---|---|
input_type_hint
|
An instance of an allowed built-in type, a custom
class, or an instance of a
:class:
TYPE:
|
RAISES | DESCRIPTION |
---|---|
TypeError
|
If input_type_hint is not a valid type-hint.
See
:obj: |
RETURNS | DESCRIPTION |
---|---|
PTransform
|
A reference to the instance of this particular |
class: |
|
methods. |
Source code in apache_beam/transforms/ptransform.py
with_output_types
¶
Annotates the output type of a :class:PTransform
with a type-hint.
PARAMETER | DESCRIPTION |
---|---|
type_hint
|
An instance of an allowed built-in type, a custom class,
or a :class:
TYPE:
|
RAISES | DESCRIPTION |
---|---|
TypeError
|
If type_hint is not a valid type-hint. See
:obj: |
RETURNS | DESCRIPTION |
---|---|
PTransform
|
A reference to the instance of this particular |
class: |
|
methods. |
Source code in apache_beam/transforms/ptransform.py
with_resource_hints
¶
Adds resource hints to the :class:PTransform
.
Resource hints allow users to express constraints on the environment where the transform should be executed. Interpretation of the resource hints is defined by Beam Runners. Runners may ignore the unsupported hints.
PARAMETER | DESCRIPTION |
---|---|
**kwargs
|
key-value pairs describing hints and their values.
DEFAULT:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
if provided hints are unknown to the SDK. See
:mod: |
RETURNS | DESCRIPTION |
---|---|
PTransform
|
A reference to the instance of this particular |
class: |