Types¶
tfx.v1.types
¶
TFX types module.
MODULE | DESCRIPTION |
---|---|
standard_artifacts |
Public API for standard_artifacts. |
CLASS | DESCRIPTION |
---|---|
BaseBeamComponent |
Base class for a TFX Beam pipeline component. |
BaseChannel |
An abstraction for component (BaseNode) artifact inputs. |
BaseComponent |
Base class for a TFX pipeline component. |
BaseFunctionalComponent |
Base class for functional components. |
BaseFunctionalComponentFactory |
Serves to declare the return type below. |
BaseNode |
Base class for a node in TFX pipeline. |
Classes¶
BaseBeamComponent
¶
BaseBeamComponent(spec: ComponentSpec, custom_executor_spec: Optional[ExecutorSpec] = None)
Bases: BaseComponent
Base class for a TFX Beam pipeline component.
An instance of a subclass of BaseBaseComponent represents the parameters for a single execution of that TFX Beam pipeline component.
Beam based components should subclass BaseBeamComponent instead of BaseComponent in order to inherit Beam related SDKs. All subclasses of BaseBeamComponent should override the required class level attributes specified in BaseComponent.
Initialize a component.
PARAMETER | DESCRIPTION |
---|---|
spec
|
types.ComponentSpec object for this component instance.
TYPE:
|
custom_executor_spec
|
Optional custom executor spec overriding the default executor specified in the component attribute.
TYPE:
|
METHOD | DESCRIPTION |
---|---|
add_downstream_node |
Experimental: Add another component that must run after this one. |
add_downstream_nodes |
Experimental: Add another component that must run after this one. |
add_upstream_node |
Experimental: Add another component that must run before this one. |
add_upstream_nodes |
Experimental: Add components that must run before this one. |
from_json_dict |
Convert from dictionary data to an object. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
with_beam_pipeline_args |
Add per component Beam pipeline args. |
with_platform_config |
Attaches a proto-form platform config to a component. |
ATTRIBUTE | DESCRIPTION |
---|---|
id |
Node id, unique across all TFX nodes in a pipeline.
TYPE:
|
outputs |
Component's output channel dict. |
Source code in tfx/dsl/components/base/base_component.py
Attributes¶
id
property
writable
¶
id: str
Node id, unique across all TFX nodes in a pipeline.
If id
is set by the user, return it directly.
Otherwise, return
RETURNS | DESCRIPTION |
---|---|
str
|
node id. |
Functions¶
add_downstream_node
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_node
.
PARAMETER | DESCRIPTION |
---|---|
downstream_node
|
a component that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_downstream_nodes
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_nodes
.
PARAMETER | DESCRIPTION |
---|---|
downstream_nodes
|
a list of components that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_node
¶
Experimental: Add another component that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_downstream_node
.
PARAMETER | DESCRIPTION |
---|---|
upstream_node
|
a component that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_nodes
¶
Experimental: Add components that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
PARAMETER | DESCRIPTION |
---|---|
upstream_nodes
|
a list of components that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
from_json_dict
classmethod
¶
Convert from dictionary data to an object.
to_json_dict
¶
Convert from an object to a JSON serializable dictionary.
Source code in tfx/dsl/components/base/base_node.py
with_beam_pipeline_args
¶
with_beam_pipeline_args(beam_pipeline_args: Iterable[Union[str, Placeholder]]) -> BaseBeamComponent
Add per component Beam pipeline args.
PARAMETER | DESCRIPTION |
---|---|
beam_pipeline_args
|
List of Beam pipeline args to be added to the Beam executor spec. |
RETURNS | DESCRIPTION |
---|---|
BaseBeamComponent
|
the same component itself. |
Source code in tfx/dsl/components/base/base_beam_component.py
with_platform_config
¶
Attaches a proto-form platform config to a component.
The config will be a per-node platform-specific config.
PARAMETER | DESCRIPTION |
---|---|
config
|
platform config to attach to the component.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Self
|
the same component itself. |
Source code in tfx/dsl/components/base/base_component.py
BaseChannel
¶
An abstraction for component (BaseNode) artifact inputs.
BaseChannel
is often interchangeably used with the term 'channel' (not
capital Channel
which points to the legacy class name).
Component takes artifact inputs distinguished by each "input key". For example:
trainer = Trainer(
examples=example_gen.outputs['examples'],
) # ^^^^^^^^
# input key
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# channel
Here "examples" is the input key of the Examples
artifact type.
example_gen.outputs["examples"]
is a channel. Typically a single channel
refers to a list of Artifact
of a homogeneous type. Since channel is a
declarative abstraction it is not strictly bound to the actual artifact, but
is more of an input selector.
The most commonly used channel type is an OutputChannel
(in the form of
component.outputs["key"]
, which selects the artifact produced by the
component in the same pipeline run (in synchronous execution mode; more
information on OutputChannel docstring), and is typically a single artifact.
ATTRIBUTE | DESCRIPTION |
---|---|
type |
The artifact type class that the Channel takes.
TYPE:
|
is_optional |
If this channel is optional (e.g. may trigger components at run time if there are no artifacts in the channel). None if not explicetely set. |
METHOD | DESCRIPTION |
---|---|
as_optional |
Creates an optional version of self. |
get_data_dependent_node_ids |
Get data dependent nodes of this channel. |
ATTRIBUTE | DESCRIPTION |
---|---|
is_optional |
If this is an "optional" channel. Changes Pipeline runtime behavior. |
type_name |
Name of the artifact type class that Channel takes.
|
Source code in tfx/types/channel.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
get_data_dependent_node_ids
abstractmethod
¶
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. |
Source code in tfx/types/channel.py
BaseComponent
¶
BaseComponent(spec: ComponentSpec, custom_executor_spec: Optional[ExecutorSpec] = None)
Base class for a TFX pipeline component.
An instance of a subclass of BaseComponent represents the parameters for a single execution of that TFX pipeline component.
All subclasses of BaseComponent must override the SPEC_CLASS field with the ComponentSpec subclass that defines the interface of this component.
ATTRIBUTE | DESCRIPTION |
---|---|
SPEC_CLASS |
a subclass of types.ComponentSpec used by this component (required). This is a class level value.
|
EXECUTOR_SPEC |
an instance of executor_spec.ExecutorSpec which describes how to execute this component (required). This is a class level value.
|
DRIVER_CLASS |
a subclass of base_driver.BaseDriver as a custom driver for this component (optional, defaults to base_driver.BaseDriver). This is a class level value.
|
PRE_EXECUTABLE_SPEC |
an optional PythonClassExecutableSpec of pre-execution hook.
|
spec |
an instance of
|
platform_config |
a protobuf message representing platform config for a component instance.
|
Initialize a component.
PARAMETER | DESCRIPTION |
---|---|
spec
|
types.ComponentSpec object for this component instance.
TYPE:
|
custom_executor_spec
|
Optional custom executor spec overriding the default executor specified in the component attribute.
TYPE:
|
METHOD | DESCRIPTION |
---|---|
add_downstream_node |
Experimental: Add another component that must run after this one. |
add_downstream_nodes |
Experimental: Add another component that must run after this one. |
add_upstream_node |
Experimental: Add another component that must run before this one. |
add_upstream_nodes |
Experimental: Add components that must run before this one. |
from_json_dict |
Convert from dictionary data to an object. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
with_platform_config |
Attaches a proto-form platform config to a component. |
ATTRIBUTE | DESCRIPTION |
---|---|
id |
Node id, unique across all TFX nodes in a pipeline.
TYPE:
|
outputs |
Component's output channel dict. |
Source code in tfx/dsl/components/base/base_component.py
Attributes¶
id
property
writable
¶
id: str
Node id, unique across all TFX nodes in a pipeline.
If id
is set by the user, return it directly.
Otherwise, return
RETURNS | DESCRIPTION |
---|---|
str
|
node id. |
Functions¶
add_downstream_node
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_node
.
PARAMETER | DESCRIPTION |
---|---|
downstream_node
|
a component that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_downstream_nodes
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_nodes
.
PARAMETER | DESCRIPTION |
---|---|
downstream_nodes
|
a list of components that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_node
¶
Experimental: Add another component that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_downstream_node
.
PARAMETER | DESCRIPTION |
---|---|
upstream_node
|
a component that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_nodes
¶
Experimental: Add components that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
PARAMETER | DESCRIPTION |
---|---|
upstream_nodes
|
a list of components that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
from_json_dict
classmethod
¶
Convert from dictionary data to an object.
to_json_dict
¶
Convert from an object to a JSON serializable dictionary.
Source code in tfx/dsl/components/base/base_node.py
with_platform_config
¶
Attaches a proto-form platform config to a component.
The config will be a per-node platform-specific config.
PARAMETER | DESCRIPTION |
---|---|
config
|
platform config to attach to the component.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Self
|
the same component itself. |
Source code in tfx/dsl/components/base/base_component.py
BaseFunctionalComponent
¶
BaseFunctionalComponent(spec: ComponentSpec, custom_executor_spec: Optional[ExecutorSpec] = None)
Bases: BaseComponent
Base class for functional components.
Initialize a component.
PARAMETER | DESCRIPTION |
---|---|
spec
|
types.ComponentSpec object for this component instance.
TYPE:
|
custom_executor_spec
|
Optional custom executor spec overriding the default executor specified in the component attribute.
TYPE:
|
METHOD | DESCRIPTION |
---|---|
add_downstream_node |
Experimental: Add another component that must run after this one. |
add_downstream_nodes |
Experimental: Add another component that must run after this one. |
add_upstream_node |
Experimental: Add another component that must run before this one. |
add_upstream_nodes |
Experimental: Add components that must run before this one. |
from_json_dict |
Convert from dictionary data to an object. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
with_platform_config |
Attaches a proto-form platform config to a component. |
ATTRIBUTE | DESCRIPTION |
---|---|
id |
Node id, unique across all TFX nodes in a pipeline.
TYPE:
|
outputs |
Component's output channel dict. |
Source code in tfx/dsl/components/base/base_component.py
Attributes¶
id
property
writable
¶
id: str
Node id, unique across all TFX nodes in a pipeline.
If id
is set by the user, return it directly.
Otherwise, return
RETURNS | DESCRIPTION |
---|---|
str
|
node id. |
Functions¶
add_downstream_node
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_node
.
PARAMETER | DESCRIPTION |
---|---|
downstream_node
|
a component that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_downstream_nodes
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_nodes
.
PARAMETER | DESCRIPTION |
---|---|
downstream_nodes
|
a list of components that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_node
¶
Experimental: Add another component that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_downstream_node
.
PARAMETER | DESCRIPTION |
---|---|
upstream_node
|
a component that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_nodes
¶
Experimental: Add components that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
PARAMETER | DESCRIPTION |
---|---|
upstream_nodes
|
a list of components that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
from_json_dict
classmethod
¶
Convert from dictionary data to an object.
to_json_dict
¶
Convert from an object to a JSON serializable dictionary.
Source code in tfx/dsl/components/base/base_node.py
with_platform_config
¶
Attaches a proto-form platform config to a component.
The config will be a per-node platform-specific config.
PARAMETER | DESCRIPTION |
---|---|
config
|
platform config to attach to the component.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Self
|
the same component itself. |
Source code in tfx/dsl/components/base/base_component.py
BaseFunctionalComponentFactory
¶
Bases: Protocol
Serves to declare the return type below.
METHOD | DESCRIPTION |
---|---|
__call__ |
This corresponds to BaseFunctionalComponent.init. |
test_call |
This corresponds to the static BaseFunctionalComponent.test_call(). |
BaseNode
¶
BaseNode(executor_spec: Optional[ExecutorSpec] = None, driver_class: Optional[Type[BaseDriver]] = None)
Bases: Jsonable
, ABC
Base class for a node in TFX pipeline.
Initialize a node.
PARAMETER | DESCRIPTION |
---|---|
executor_spec
|
Optional instance of executor_spec.ExecutorSpec which describes how to execute this node (optional, defaults to an empty executor indicates no-op.
TYPE:
|
driver_class
|
Optional subclass of base_driver.BaseDriver as a custom driver for this node (optional, defaults to base_driver.BaseDriver). Nodes usually use the default driver class, but may override it. |
METHOD | DESCRIPTION |
---|---|
add_downstream_node |
Experimental: Add another component that must run after this one. |
add_downstream_nodes |
Experimental: Add another component that must run after this one. |
add_upstream_node |
Experimental: Add another component that must run before this one. |
add_upstream_nodes |
Experimental: Add components that must run before this one. |
from_json_dict |
Convert from dictionary data to an object. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
id |
Node id, unique across all TFX nodes in a pipeline.
TYPE:
|
Source code in tfx/dsl/components/base/base_node.py
Attributes¶
id
property
writable
¶
id: str
Node id, unique across all TFX nodes in a pipeline.
If id
is set by the user, return it directly.
Otherwise, return
RETURNS | DESCRIPTION |
---|---|
str
|
node id. |
Functions¶
add_downstream_node
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_node
.
PARAMETER | DESCRIPTION |
---|---|
downstream_node
|
a component that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_downstream_nodes
¶
Experimental: Add another component that must run after this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_upstream_nodes
.
PARAMETER | DESCRIPTION |
---|---|
downstream_nodes
|
a list of components that must run after this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_node
¶
Experimental: Add another component that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
It is symmetric with add_downstream_node
.
PARAMETER | DESCRIPTION |
---|---|
upstream_node
|
a component that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
add_upstream_nodes
¶
Experimental: Add components that must run before this one.
This method enables task-based dependencies by enforcing execution order for synchronous pipelines on supported platforms. Currently, the supported platforms are Airflow, Beam, and Kubeflow Pipelines.
Note that this API call should be considered experimental, and may not work with asynchronous pipelines, sub-pipelines and pipelines with conditional nodes. We also recommend relying on data for capturing dependencies where possible to ensure data lineage is fully captured within MLMD.
PARAMETER | DESCRIPTION |
---|---|
upstream_nodes
|
a list of components that must run before this node.
|
Source code in tfx/dsl/components/base/base_node.py
from_json_dict
classmethod
¶
Convert from dictionary data to an object.
to_json_dict
¶
Convert from an object to a JSON serializable dictionary.
Source code in tfx/dsl/components/base/base_node.py
Modules¶
standard_artifacts
¶
Public API for standard_artifacts.
CLASS | DESCRIPTION |
---|---|
Boolean |
Artifacts representing a boolean. |
Bytes |
Artifacts representing raw bytes. |
ExampleAnomalies |
TFX first-party component artifact definition. |
ExampleStatistics |
TFX first-party component artifact definition. |
Examples |
Artifact that contains the training data. |
Float |
Float-typed artifact. |
HyperParameters |
TFX first-party component artifact definition. |
InferenceResult |
TFX first-party component artifact definition. |
InfraBlessing |
TFX first-party component artifact definition. |
Integer |
Integer-typed artifact. |
JsonValue |
Artifacts representing a Jsonable value. |
Model |
Artifact that contains the actual persisted model. |
ModelBlessing |
Artifact that contains the evaluation of a trained model. |
ModelEvaluation |
TFX first-party component artifact definition. |
ModelRun |
TFX first-party component artifact definition. |
PushedModel |
TFX first-party component artifact definition. |
Schema |
Artifact that contains the schema of the data. |
String |
String-typed artifact. |
TransformCache |
TFX first-party component artifact definition. |
TransformGraph |
TFX first-party component artifact definition. |
TunerResults |
TFX first-party component artifact definition. |
Classes¶
Boolean
¶
Bases: ValueArtifact
Artifacts representing a boolean.
Boolean value artifacts are encoded as "1" for True and "0" for False.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Bytes
¶
Bases: ValueArtifact
Artifacts representing raw bytes.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
ExampleAnomalies
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
ExampleStatistics
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Examples
¶
Bases: _TfxArtifact
Artifact that contains the training data.
Training data should be brought in to the TFX pipeline using components
like ExampleGen. Data in Examples artifact is split and stored separately.
The file and payload format must be specified as optional custom properties
if not using default formats.
Please see
the ExampleGen
guide to
understand about span, version and splits.
- Properties:
span
: Integer to distinguish group of Examples.version
: Integer to represent updated data.-
splits
: A list of split names. For example,["train", "test"]
. -
File structure:
-
{uri}/
Split-{split_name1}/
: Files for split- All direct children files are recognized as the data.
- File format and payload format are determined by custom properties.
Split-{split_name2}/
: Another split...
-
Commonly used custom properties of the Examples artifact:
file_format
: a string that represents the file format. See tfx/components/util/tfxio_utils.py:make_tfxio for available values.payload_format
: int (enum) value of the data payload format. See tfx/proto/example_gen.proto:PayloadFormat for available formats.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
path |
Path to the artifact URI's split subdirectory. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
path
¶Path to the artifact URI's split subdirectory.
This method DOES NOT create a directory path it returns; caller must make a directory of the returned path value before writing.
PARAMETER | DESCRIPTION |
---|---|
split
|
A name of the split, e.g.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
ValueError
|
if the |
RETURNS | DESCRIPTION |
---|---|
str
|
A path to |
Source code in tfx/types/standard_artifacts.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Float
¶
Bases: ValueArtifact
Float-typed artifact.
Float value artifacts are encoded using Python str() class. However, Nan and Infinity are handled separately. See string constants in the class.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
decode
¶Method decoding the file content. Implemented by subclasses.
Source code in tfx/types/standard_artifacts.py
encode
¶Method encoding the file content. Implemented by subclasses.
Source code in tfx/types/standard_artifacts.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
HyperParameters
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
InferenceResult
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
InfraBlessing
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Integer
¶
Bases: ValueArtifact
Integer-typed artifact.
Integer value artifacts are encoded as a decimal string.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
decode
¶
encode
¶Method encoding the file content. Implemented by subclasses.
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
JsonValue
¶
Bases: ValueArtifact
Artifacts representing a Jsonable value.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
decode
¶decode(serialized_value: str) -> JsonableType
encode
¶encode(value: JsonableType) -> str
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Model
¶
Bases: _TfxArtifact
Artifact that contains the actual persisted model.
Training components stores the trained model like a saved model in this
artifact. A Model
artifact contains serialization of the trained model in
one or more formats, each suitable for different usage (e.g. serving,
evaluation), and serving environments.
- File structure:
-
{uri}/
Format-Serving/
: Model exported for serving.saved_model.pb
- Other actual model files.
Format-TFMA/
: Model exported for evaluation.saved_model.pb
- Other actual model files.
-
Commonly used custom properties of the Model artifact:
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
ModelBlessing
¶
Bases: _TfxArtifact
Artifact that contains the evaluation of a trained model.
This artifact is usually used with Conditional when determining whether to push this model on service or not.
# Run pusher if evaluator has blessed the model.
with tfx.dsl.Cond(evaluator.outputs['blessing'].future()
[0].custom_property('blessed') == 1):
pusher = Pusher(...)
- File structure:
{uri}/
BLESSED
: if the evaluator has blessed the model.NOT_BLESSED
: if the evaluator has not blessed the model.
-
See tfx/components/evaluator/executor.py for how to write ModelBlessing.
-
Commonly used custom properties of the ModelBlessing artifact:
blessed
: int value that represents whether the evaluator has blessed its model or not.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
ModelEvaluation
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
ModelRun
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
PushedModel
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
Schema
¶
Bases: _TfxArtifact
Artifact that contains the schema of the data.
Schema artifact is used to store the schema of the data. The schema is a proto that describes the data, including the type of each feature, the range of values for each feature, and other properties. The schema is usually generated by the SchemaGen component, which uses the statistics of the data to infer the schema. The schema can be used by other components in the pipeline to validate the data and to generate models.
- File structure:
{uri}/
schema.pbtxt
: Text-proto format serialization of tensorflow_metadata.proto.v0.schema.Schema proto message.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
String
¶
Bases: ValueArtifact
String-typed artifact.
String value artifacts are encoded using UTF-8.
Initializes ValueArtifact.
METHOD | DESCRIPTION |
---|---|
annotate_as |
Annotate the value artifact type with a system artifact class. |
copy_from |
Set uri, properties and custom properties from a given Artifact. |
decode |
Method decoding the file content. Implemented by subclasses. |
encode |
Method encoding the file content. Implemented by subclasses. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
value |
Value stored in the artifact.
|
Source code in tfx/types/value_artifact.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
annotate_as
classmethod
¶Annotate the value artifact type with a system artifact class.
Example usage
PARAMETER | DESCRIPTION |
---|---|
type_annotation
|
the standard annotations used to annotate the value
artifact type. The possible values are in
|
RETURNS | DESCRIPTION |
---|---|
A subclass of the method caller class (e.g., |
Source code in tfx/types/value_artifact.py
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
decode
¶
encode
¶Method encoding the file content. Implemented by subclasses.
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
TransformCache
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
TransformGraph
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.
Source code in tfx/types/artifact.py
TunerResults
¶
Bases: _TfxArtifact
TFX first-party component artifact definition.
Construct TFX first-party component artifact.
METHOD | DESCRIPTION |
---|---|
copy_from |
Set uri, properties and custom properties from a given Artifact. |
from_json_dict |
Convert from dictionary data to an object. |
get_bool_custom_property |
Get a custom property of bool type. |
get_custom_property |
Gets a custom property with key. Return None if not found. |
get_float_custom_property |
Gets a custom property of float type. |
get_int_custom_property |
Get a custom property of int type. |
get_json_value_custom_property |
Get a custom property of JSON type. |
get_proto_custom_property |
Get a custom property of proto type. |
get_string_custom_property |
Get a custom property of string type. |
set_bool_custom_property |
Sets a custom property of bool type. |
set_float_custom_property |
Sets a custom property of float type. |
set_int_custom_property |
Set a custom property of int type. |
set_json_value_custom_property |
Sets a custom property of JSON type. |
set_mlmd_artifact |
Replace the MLMD artifact object on this artifact. |
set_mlmd_artifact_type |
Set entire ArtifactType in this object. |
set_proto_custom_property |
Sets a custom property of proto type. |
set_string_custom_property |
Set a custom property of string type. |
to_json_dict |
Convert from an object to a JSON serializable dictionary. |
ATTRIBUTE | DESCRIPTION |
---|---|
artifact_type |
Type of the underlying mlmd artifact.
|
external_id |
external id of the underlying artifact.
TYPE:
|
id |
Id of the underlying mlmd artifact.
TYPE:
|
is_external |
Returns true if the artifact is external.
TYPE:
|
mlmd_artifact |
Underlying mlmd artifact.
|
name |
Name of the underlying mlmd artifact.
TYPE:
|
pipeline_name |
Name of the pipeline that produce the artifact.
TYPE:
|
producer_component |
Producer component of the artifact.
TYPE:
|
state |
State of the underlying mlmd artifact.
TYPE:
|
type |
Type of the artifact.
|
type_id |
Type id of the underlying mlmd artifact.
TYPE:
|
type_name |
Type name of the underlying mlmd artifact.
|
uri |
Artifact URI.
TYPE:
|
Source code in tfx/types/standard_artifacts.py
pipeline_name
property
writable
¶pipeline_name: str
Name of the pipeline that produce the artifact.
copy_from
¶copy_from(other: Artifact)
Set uri, properties and custom properties from a given Artifact.
Source code in tfx/types/artifact.py
from_json_dict
classmethod
¶Convert from dictionary data to an object.
Source code in tfx/types/artifact.py
get_bool_custom_property
¶Get a custom property of bool type.
Source code in tfx/types/artifact.py
get_custom_property
¶Gets a custom property with key. Return None if not found.
Source code in tfx/types/artifact.py
get_float_custom_property
¶Gets a custom property of float type.
Source code in tfx/types/artifact.py
get_int_custom_property
¶Get a custom property of int type.
Source code in tfx/types/artifact.py
get_json_value_custom_property
¶get_json_value_custom_property(key: str) -> JsonValueType
Get a custom property of JSON type.
Source code in tfx/types/artifact.py
get_proto_custom_property
¶Get a custom property of proto type.
Source code in tfx/types/artifact.py
get_string_custom_property
¶Get a custom property of string type.
Source code in tfx/types/artifact.py
set_bool_custom_property
¶
set_float_custom_property
¶Sets a custom property of float type.
set_int_custom_property
¶
set_mlmd_artifact
¶Replace the MLMD artifact object on this artifact.
Source code in tfx/types/artifact.py
set_mlmd_artifact_type
¶Set entire ArtifactType in this object.
Source code in tfx/types/artifact.py
set_string_custom_property
¶
to_json_dict
¶Convert from an object to a JSON serializable dictionary.