![]() |
Float-typed artifact.
Inherits From: ValueArtifact
, Artifact
tfx.types.standard_artifacts.Float(
*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. |
value
|
Methods
copy_from
copy_from(
other: "Artifact"
)
Set uri, properties and custom properties from a given Artifact.
decode
decode(
serialized_value: bytes
) -> float
Method decoding the file content. Implemented by subclasses.
encode
encode(
value: float
) -> bytes
Method encoding the file content. Implemented by subclasses.
from_json_dict
@classmethod
from_json_dict( dict_data: Dict[Text, Any] ) -> Any
Convert from dictionary data to an object.
get_float_custom_property
get_float_custom_property(
key: str
) -> float
Gets a custom property of float type.
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
read
read()
set_float_custom_property
set_float_custom_property(
key: str,
value: float
)
Sets a custom property of float type.
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.
write
write(
value
)
Class Variables | |
---|---|
PROPERTIES |
None
|
TYPE_NAME |
'Float'
|