# tfma.WriteResults

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/model-analysis/blob/v0.46.0/tensorflow_model_analysis/api/model_eval_lib.py#L983-L1006) |

Writes Evaluation or Validation results using given writers.

    tfma.WriteResults(
        writers: List[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/writers/Writer]
    ) -> Dict[str, beam.PCollection]

<br />

<br />

<br />

| ## Args ||
|---|---|
| `evaluation_or_validation` | Evaluation or Validation output. |
| `writers` | Writes to use for writing out output. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If Evaluation or Validation is empty. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A dict of writer results keyed by the writer stage name. ||

<br />