Display the datasets statistics on a Colab/Jupyter notebook.
tfds.visualization.show_statistics(
ds_info: dataset_info.DatasetInfo,
split: splits.Split = splits.Split.TRAIN,
disable_logging: bool = True
) -> None
tfds.show_statistics
is a wrapper around
tensorflow_data_validation
which calls tfdv.visualize_statistics
. Statistics are displayed using
FACETS OVERVIEW.
Usage:
builder = tfds.builder('mnist')
tfds.show_statistics(builder.info)
Or:
ds, ds_info = tfds.load('mnist', with_info)
tfds.show_statistics(ds_info)
Args |
ds_info
|
The tfds.core.DatasetInfo object containing the statistics.
|
split
|
Split for which generate the statistics.
|
disable_logging
|
bool , if True, disable the tfdv logs which can be too
verbose.
|