Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfx.components.evaluator.executor.Executor

View source on GitHub

Generic TFX model evaluator executor.

Inherits From: BaseExecutor

tfx.components.evaluator.executor.Executor(
    context=None
)

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.
    • eval_config: JSON string of tfma.EvalConfig.
    • feature_slicing_spec: JSON string of evaluator_pb2.FeatureSlicingSpec instance, providing the way to slice the data. Deprecated, use eval_config.slicing_specs instead.

Returns:

None