![]() |
Converts given prediction_log
to a tf.train.Example
.
tfx.components.bulk_inferrer.prediction_to_example_utils.convert(
prediction_log: prediction_log_pb2.PredictionLog,
output_example_spec: _OutputExampleSpecType
) -> tf.train.Example
Args | |
---|---|
prediction_log
|
The input prediction log. |
output_example_spec
|
The spec for how to map prediction results to columns in example. |
Returns | |
---|---|
A tf.train.Example converted from the given prediction_log.
|
Raises | |
---|---|
ValueError
|
If the inference type or signature name in spec does not match that in prediction_log. |