tfds.visualization.show_statistics  |  TensorFlow Datasets Skip to main content Install Learn Introduction New to TensorFlow? Tutorials Learn how to use TensorFlow with end-to-end examples Guide Learn framework concepts and components Learn ML Educational resources to master your path with TensorFlow API TensorFlow (v2.16.1) Versions… TensorFlow.js TensorFlow Lite TFX Resources LIBRARIES TensorFlow.js Develop web ML applications in JavaScript TensorFlow Lite Deploy ML on mobile, microcontrollers and other edge devices TFX Build production ML pipelines All libraries Create advanced models and extend TensorFlow RESOURCES Models & datasets Pre-trained models and datasets built by Google and the community Tools Tools to support and accelerate TensorFlow workflows Responsible AI Resources for every stage of the ML workflow Recommendation systems Build recommendation systems with open source tools Community Groups User groups, interest groups and mailing lists Contribute Guide for contributing to code and documentation Blog Stay up to date with all things TensorFlow Forum Discussion platform for the TensorFlow community Why TensorFlow About Case studies / English 中文 – 简体 GitHub Sign in Datasets Overview Catalog Community Catalog Guide API Install Learn More API More Resources More Overview Catalog Community Catalog Guide API Community More Why TensorFlow More GitHub All Symbols tfds Overview ReadConfig Split as_dataframe as_numpy benchmark builder builder_cls builder_from_directories builder_from_directory data_source dataset_collection disable_progress_bar display_progress_bar enable_progress_bar even_splits is_dataset_on_gcs list_builders list_dataset_collections load split_for_jax_process tfds.beam Overview ReadFromTFDS inc_counter tfds.core Overview BeamBasedBuilder BeamMetadataDict BenchmarkResult BuilderConfig DatasetBuilder DatasetCollectionLoader DatasetIdentity DatasetInfo DatasetNotFoundError Experiment FileFormat GeneratorBasedBuilder Metadata MetadataDict Path ReadInstruction SequentialWriter ShardedFileTemplate SplitDict SplitGenerator SplitInfo Version add_data_dir as_path gcs_path lazy_imports tfds_path tfds.dataset_builders Overview AdhocBuilder ConllBuilderConfig ConllDatasetBuilder ConllUBuilderConfig ConllUDatasetBuilder HuggingfaceDatasetBuilder TfDataBuilder ViewBuilder ViewConfig store_as_tfds_dataset tfds.decode Overview Decoder PartialDecoding SkipDecoding make_decoder tfds.deprecated Overview add_checksums_dir text Overview ByteTextEncoder SubwordTextEncoder TextEncoder TextEncoderConfig TokenTextEncoder Tokenizer tfds.download Overview ComputeStatsMode DownloadConfig DownloadError DownloadManager ExtractMethod GenerateMode Resource iter_archive tfds.features Overview Audio BBox BBoxFeature ClassLabel Dataset DocArg Documentation Encoding FeatureConnector FeaturesDict Image LabeledImage Scalar Sequence Tensor TensorInfo Text Video tfds.folder_dataset Overview ImageFolder TranslateFolder compute_split_info compute_split_info_from_directory write_metadata tfds.testing Overview DatasetBuilderTestCase DatasetBuilderTestCase.failureException DummyBeamDataset DummyDataset DummyDatasetCollection DummyDatasetSharedGenerator DummyMnist DummyParser DummySerializer FeatureExpectationItem FeatureExpectationsTestCase MockFs MockPolicy PickableDataSourceMock RaggedConstant SubTestCase TestCase assert_features_equal fake_examples_dir make_tmp_dir mock_data mock_kaggle_api rm_tmp_dir run_in_graph_and_eager_modes test_main tmp_dir tfds.transform Overview Example ExampleTransformFn Key KeyExample apply_do_fn apply_filter apply_fn apply_transformations remove_feature rename_feature rename_features tfds.typing Overview DecoderArg Dim FeatureSpecs Json JsonValue Key KeySerializedExample ListOrElem ListOrTreeOrElem NpArrayOrScalar NpArrayOrScalarDict PathLike Shape SplitArg TensorDict Tree TreeDict TupleOrList tfds.visualization Overview GraphVisualizer GraphVisualizerMetadataDict ImageGridVisualizer Visualizer show_examples show_statistics Introduction Tutorials Guide Learn ML TensorFlow (v2.16.1) Versions… TensorFlow.js TensorFlow Lite TFX LIBRARIES TensorFlow.js TensorFlow Lite TFX All libraries RESOURCES Models & datasets Tools Responsible AI Recommendation systems Groups Contribute Blog Forum About Case studies TFDS now supports the Croissant 🥐 format! Read the documentation to know more. TensorFlow Resources Datasets API tfds.visualization.show_statistics Stay organized with collections Save and categorize content based on your preferences. View source on GitHub Display the datasets statistics on a Colab/Jupyter notebook. View aliases Main aliases tfds.show_statistics 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. Returns None 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."],[],[]] Stay connected Blog Forum GitHub Twitter YouTube Support Issue tracker Release notes Stack Overflow Brand guidelines Cite TensorFlow Terms Privacy Manage cookies Sign up for the TensorFlow newsletter Subscribe English 中文 – 简体