Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfx.orchestration.experimental.interactive.standard_visualizations.SchemaVisualization.ARTIFACT_TYPE

View source on GitHub

TFX artifact used for orchestration.

Inherits From: Artifact

tfx.orchestration.experimental.interactive.standard_visualizations.SchemaVisualization.ARTIFACT_TYPE(
    mlmd_artifact_type=None
)

This is used for type-checking and inter-component communication. Currently, it wraps a tuple of (ml_metadata.proto.Artifact, ml_metadata.proto.ArtifactType) with additional property accessors for internal state.

A user may create a subclass of Artifact and override the TYPE_NAME property with the type for this artifact subclass. Users of the subclass may then omit the "type_name" field when construction the object.

A user may specify artifact type-specific properties for an Artifact subclass by overriding the PROPERTIES dictionary, as detailed below.

Args:

  • mlmd_artifact_type: Proto message defining the underlying ArtifactType. Optional and intended for internal use.

Attributes:

  • artifact_type
  • id: Id of underlying artifact.
  • mlmd_artifact
  • name: Name of the underlying artifact.
  • pipeline_name: Name of the pipeline that produce the artifact.
  • producer_component: Producer component of the artifact.
  • state: State of the underlying artifact.
  • type
  • type_id: Id of underlying artifact type.
  • type_name
  • uri: Artifact URI.

Methods

from_json_dict

View source

@classmethod
from_json_dict(
    cls, dict_data
)

Convert from dictionary data to an object.

get_int_custom_property

View source

get_int_custom_property(
    key
)

Get a custom property of int type.

get_string_custom_property

View source

get_string_custom_property(
    key
)

Get a custom property of string type.

set_int_custom_property

View source

set_int_custom_property(
    key, value
)

Set a custom property of int type.

set_mlmd_artifact

View source

set_mlmd_artifact(
    artifact
)

Replace the MLMD artifact object on this artifact.

set_mlmd_artifact_type

View source

set_mlmd_artifact_type(
    artifact_type
)

Set entire ArtifactType in this object.

set_string_custom_property

View source

set_string_custom_property(
    key, value
)

Set a custom property of string type.

to_json_dict

View source

to_json_dict()

Convert from an object to a JSON serializable dictionary.

Class Variables

  • TYPE_NAME = 'Schema'