tfx.v1.types.standard_artifacts.ModelBlessing

Artifact that contains the evaluation of a trained model.

Inherits From: Artifact

This artifact is usually used with Conditional when determining whether to push this model on service or not.

# Run pusher if evaluator has blessed the model.
with tfx.dsl.Cond(evaluator.outputs['blessing'].future()
                  [0].custom_property('blessed') == 1):
  pusher = Pusher(...)
  • File structure:

    • {uri}/
      • BLESSED: if the evaluator has blessed the model.
      • NOT_BLESSED: if the evaluator has not blessed the model.
    • See tfx/components/evaluator/executor.py for how to write ModelBlessing.
  • Commonly used custom properties of the ModelBlessing artifact:

    • blessed: int value that represents whether the evaluator has blessed its model or not.

PROPERTIES None
TYPE_ANNOTATION None
TYPE_NAME 'ModelBlessing'