Writes given Evaluation or Validation data using given writer PTransform.
tfma.writers.Write(
evaluation_or_validation: tfma.evaluators.Evaluation
,
key: str,
ptransform: beam.PTransform
) -> beam.pvalue.PDone
Args |
evaluation_or_validation
|
Evaluation or Validation data.
|
key
|
Key for Evaluation or Validation output to write. It is valid for the
key to not exist in the dict (in which case the write is a no-op).
|
ptransform
|
PTransform to use for writing.
|
Raises |
ValueError
|
If Evaluation or Validation is empty. The key does not need to
exist in the Evaluation or Validation, but the dict must not be empty.
|
Returns |
beam.pvalue.PDone.
|