<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/visualization/visualizer.py#L40-L71) |

Visualizer.

## Methods

### `match`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/visualization/visualizer.py#L43-L52)

    @abc.abstractmethod
    match(
        ds_info: dataset_info.DatasetInfo
    ) -> bool

Returns whether the visualizer is compatible with the dataset.

<br />

<br />

<br />

| Args ||
|---|---|
| `ds_info` | [`tfds.core.DatasetInfo`](https://www.tensorflow.org/datasets/api_docs/python/tfds/core/DatasetInfo) object of the dataset to visualize. |

<br />

<br />

<br />

<br />

| Returns ||
|---|---|
| `bool` | True if the visualizer can be applied to the dataset. |

<br />

### `show`

[View source](https://github.com/tensorflow/datasets/blob/v4.9.10/tensorflow_datasets/core/visualization/visualizer.py#L54-L71)

    @abc.abstractmethod
    show(
        ds: tf.data.Dataset, ds_info: dataset_info.DatasetInfo, **options_kwargs
    )

Display the dataset.

<br />

<br />

<br />

| Args ||
|---|---|
| `ds` | [`tf.data.Dataset`](https://www.tensorflow.org/api_docs/python/tf/data/Dataset). The tf.data.Dataset object to visualize. Examples should not be batched. Examples will be consumed in order until (rows \* cols) are read or the dataset is consumed. |
| `ds_info` | [`tfds.core.DatasetInfo`](https://www.tensorflow.org/datasets/api_docs/python/tfds/core/DatasetInfo) object of the dataset to visualize. |
| `**options_kwargs` | Additional display options, specific to the dataset type to visualize. See the [`tfds.visualization`](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization) for a list of available visualizers. |

<br />