tfx.components.example_validator.executor.Executor

View source on GitHub

Class Executor

TensorFlow ExampleValidator component executor.

Inherits From: BaseExecutor

__init__

View source

__init__(context=None)

Constructs a beam based executor.

Child Classes

class Context

Methods

Do

View source

Do(
    input_dict,
    output_dict,
    exec_properties
)

TensorFlow ExampleValidator executor entrypoint.

This validates the statistics on the 'eval' split against the schema.

Args:

  • input_dict: Input dict from input key to a list of artifacts, including:
    • stats: A list of 'ExampleStatisticsPath' type which should contain split 'eval'. Stats on other splits are ignored.
    • schema: A list of 'SchemaPath' type which should contain a single schema artifact.
  • output_dict: Output dict from key to a list of artifacts, including:
    • output: A list of 'ExampleValidationPath' artifact of size one. It will include a single pbtxt file which contains all anomalies found.
  • exec_properties: A dict of execution properties. Not used yet.

Returns:

None