tfx.components.evaluator.executor.Executor

View source on GitHub

Class Executor

Generic TFX model evaluator 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
)

Runs a batch job to evaluate the eval_model against the given input.

Args:

  • input_dict: Input dict from input key to a list of Artifacts.
    • model_exports: exported model.
    • examples: examples for eval the model.
  • output_dict: Output dict from output key to a list of Artifacts.
    • output: model evaluation results.
  • exec_properties: A dict of execution properties.
    • feature_slicing_spec: JSON string of evaluator_pb2.FeatureSlicingSpec instance, providing the way to slice the data.

Returns:

None