tfx.v1.types.standard_artifacts.Float

Stay organized with collections Save and categorize content based on your preferences.

Float-typed artifact.

Inherits From: Artifact

Float value artifacts are encoded using Python str() class. However, Nan and Infinity are handled separately. See string constants in the class.

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 'Float'