# tfma.view.SlicedPlots

<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/view/view_types.py#L30-L43) |

A tuple containing the plots belonging to a slice.

    tfma.view.SlicedPlots(
        slice, plot
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `slice` | A 2-element tuple representing a slice. The first element is the key of a feature (ex: 'color'), and the second element is the value (ex: 'green'). An empty tuple represents an 'overall' slice (i.e. one that encompasses the entire dataset. |
| `plot` | A dict mapping `output_name` and `sub_key_id` to plot data. The data contains histograms and confusion matrices, which can be rendered with the [`tfma.view.render_plot`](https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/view/render_plot) function. |

<br />