![]() |
TFX first-party component artifact definition.
Inherits From: Artifact
tfx.types.standard_artifacts.ModelBlessing(
*args, **kwargs
)
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
copy_from
copy_from(
other: "Artifact"
)
Set uri, properties and custom properties from a given Artifact.
from_json_dict
@classmethod
from_json_dict( dict_data: Dict[Text, Any] ) -> Any
Convert from dictionary data to an object.
get_int_custom_property
get_int_custom_property(
key: Text
) -> int
Get a custom property of int type.
get_string_custom_property
get_string_custom_property(
key: Text
) -> Text
Get a custom property of string type.
has_custom_property
has_custom_property(
key: Text
) -> bool
set_int_custom_property
set_int_custom_property(
key: Text,
value: int
)
Set a custom property of int type.
set_mlmd_artifact
set_mlmd_artifact(
artifact: metadata_store_pb2.Artifact
)
Replace the MLMD artifact object on this artifact.
set_mlmd_artifact_type
set_mlmd_artifact_type(
artifact_type: metadata_store_pb2.ArtifactType
)
Set entire ArtifactType in this object.
set_string_custom_property
set_string_custom_property(
key: Text,
value: Text
)
Set a custom property of string type.
to_json_dict
to_json_dict() -> Dict[Text, Any]
Convert from an object to a JSON serializable dictionary.
Class Variables | |
---|---|
PROPERTIES |
None
|
TYPE_NAME |
'ModelBlessing'
|