Testing¶
tfx.v1.testing
¶
Public testing modules for TFX.
CLASS | DESCRIPTION |
---|---|
Channel |
Dummy channel for testing. |
Classes¶
Channel
¶
Bases: BaseChannel
Dummy channel for testing.
METHOD | DESCRIPTION |
---|---|
as_optional |
Creates an optional version of self. |
future |
|
get_data_dependent_node_ids |
Get data dependent nodes of this channel. |
no_trigger |
|
trigger_by_property |
|
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_ids |
|
input_trigger |
TYPE:
|
is_optional |
If this is an "optional" channel. Changes Pipeline runtime behavior. |
type |
TYPE:
|
type_name |
Name of the artifact type class that Channel takes.
|
Source code in tfx/types/channel_utils.py
Attributes¶
is_optional
property
¶
If this is an "optional" channel. Changes Pipeline runtime behavior.
Functions¶
as_optional
¶
Creates an optional version of self.
By default component input channels are considered required, meaning if the channel does not contain at least 1 artifact, the component will be skipped. Making channel optional disables this requirement and allows componenst to be executed with no artifacts from this channel.
RETURNS | DESCRIPTION |
---|---|
Self
|
A copy of self which is optional. |
Source code in tfx/types/channel.py
future
¶
get_data_dependent_node_ids
¶
Get data dependent nodes of this channel.
Currently only the OutputChannel
directly imposes the data dependency,
but other channels can also indirectly have a data dependency if they depend
on the OutputChannel. Use this abstract method to define transitive data
dependency.
RETURNS | DESCRIPTION |
---|---|
Set[str]
|
A set of data-dependent node IDs. |