Join us at DevFest for Ukraine June 14-15 Online Register now

tfx.v1.types.standard_artifacts.Boolean

Artifacts representing a boolean.

Inherits From: Artifact

Boolean value artifacts are encoded as "1" for True and "0" for False.

value Value stored in the artifact.

Methods

annotate_as

Annotate the value artifact type with a system artifact class.

Example usage:

from tfx.types.system_artifacts import Model ... tfx.Binary( name=component_name, mpm_or_target=..., flags=..., outputs={ 'experiment_id': standard_artifacts.String.annotate_as(Model) })

Args
type_annotation the system artifact class used to annotate the value artifact type. It is a subclass of SystemArtifact. The subclasses are defined in third_party/py/tfx/types/system_artifacts.py.

Returns
A subclass of the method caller class (e.g., standard_artifacts.String, standard_artifacts.Float) with TYPE_ANNOTATION attribute set to be type_annotation; returns the original class iftype_annotation is None.

PROPERTIES None
TYPE_ANNOTATION None
TYPE_NAME 'Boolean'