tfds.visualization.show_statistics
Stay organized with collections
Save and categorize content based on your preferences.
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 )
Note: In order to work, tensorflow_data_validation must be installed and
the dataset info object must contain the statistics. For "official" datasets,
only datasets which have been added/updated recently will contains statistics.
For "custom" datasets, you need to generate the dataset with
tensorflow_data_validation installed to have the statistics.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]