# Module: tfdv

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/__init__.py) |

Init module for TensorFlow Data Validation.

## Classes

[`class CombinerStatsGenerator`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/CombinerStatsGenerator): A StatsGenerator which computes statistics using a combiner function.

[`class CrossFeatureView`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/CrossFeatureView): View of a single cross feature.

[`class DatasetListView`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/DatasetListView): View of statistics for multiple datasets (slices).

[`class DatasetView`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/DatasetView): View of statistics for a dataset (slice).

[`class DetectFeatureSkew`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/DetectFeatureSkew): API for detecting feature skew between training and serving examples.

[`class FeaturePath`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/FeaturePath): Represents the path to a feature in an input example.

[`class FeatureView`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/FeatureView): View of a single feature.

[`class GenerateStatistics`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/GenerateStatistics): API for generating data statistics.

[`class MergeDatasetFeatureStatisticsList`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/MergeDatasetFeatureStatisticsList): API for merging sharded DatasetFeatureStatisticsList.

[`class StatsOptions`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/StatsOptions): Options for generating statistics.

[`class TransformStatsGenerator`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/TransformStatsGenerator): A StatsGenerator which wraps an arbitrary Beam PTransform.

[`class WriteStatisticsToBinaryFile`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/WriteStatisticsToBinaryFile): API for writing serialized data statistics to a binary file.

[`class WriteStatisticsToRecordsAndBinaryFile`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/WriteStatisticsToRecordsAndBinaryFile): API for writing statistics to both sharded records and binary pb.

[`class WriteStatisticsToTFRecord`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/WriteStatisticsToTFRecord): API for writing serialized data statistics to TFRecord file.

## Functions

[`compare_slices(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/compare_slices): Compare statistics of two slices using Facets.

[`default_sharded_output_suffix(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/default_sharded_output_suffix): Returns the default sharded output suffix.

[`default_sharded_output_supported(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/default_sharded_output_supported): True if sharded output is supported by default.

[`display_anomalies(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/display_anomalies): Displays the input anomalies (for use in a Jupyter notebook).

[`display_schema(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/display_schema): Displays the input schema (for use in a Jupyter notebook).

[`experimental_get_feature_value_slicer(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/experimental_get_feature_value_slicer): Returns a function that generates sliced record batches for a given one.

[`generate_dummy_schema_with_paths(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/generate_dummy_schema_with_paths): Generate a schema with the requested paths and no other information.

[`generate_statistics_from_csv(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/generate_statistics_from_csv): Compute data statistics from CSV files.

[`generate_statistics_from_dataframe(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/generate_statistics_from_dataframe): Compute data statistics for the input pandas DataFrame.

[`generate_statistics_from_tfrecord(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/generate_statistics_from_tfrecord): Compute data statistics from TFRecord files containing TFExamples.

[`get_confusion_count_dataframes(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_confusion_count_dataframes): Returns a pandas dataframe representation of a sequence of ConfusionCount.

[`get_domain(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_domain): Get the domain associated with the input feature from the schema.

[`get_feature(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_feature): Get a feature from the schema.

[`get_feature_stats(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_feature_stats): Get feature statistics from the dataset statistics.

[`get_match_stats_dataframe(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_match_stats_dataframe): Formats MatchStats as a pandas dataframe.

[`get_skew_result_dataframe(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_skew_result_dataframe): Formats FeatureSkew results as a pandas dataframe.

[`get_slice_stats(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_slice_stats): Get statistics associated with a specific slice.

[`get_statistics_html(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/get_statistics_html): Build the HTML for visualizing the input statistics using Facets.

[`infer_schema(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/infer_schema): Infers schema from the input statistics.

[`load_anomalies_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_anomalies_text): Loads the Anomalies proto stored in text format in the input path.

[`load_schema_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_schema_text): Loads the schema stored in text format in the input path.

[`load_sharded_statistics(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_sharded_statistics): Read a sharded DatasetFeatureStatisticsList from disk as a DatasetListView.

[`load_statistics(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_statistics): Loads data statistics proto from file.

[`load_stats_binary(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_stats_binary): Loads a serialized DatasetFeatureStatisticsList proto from a file.

[`load_stats_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/load_stats_text): Loads the specified DatasetFeatureStatisticsList proto stored in text format.

[`set_domain(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/set_domain): Sets the domain for the input feature in the schema.

[`update_schema(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/update_schema): Updates input schema to conform to the input statistics.

[`validate_corresponding_slices(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/validate_corresponding_slices): Validates corresponding sliced statistics.

[`validate_examples_in_csv(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/validate_examples_in_csv): Validates examples in csv files.

[`validate_examples_in_tfrecord(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/validate_examples_in_tfrecord): Validates TFExamples in TFRecord files.

[`validate_statistics(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/validate_statistics): Validates the input statistics against the provided input schema.

[`visualize_statistics(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/visualize_statistics): Visualize the input statistics using Facets.

[`write_anomalies_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/write_anomalies_text): Writes the Anomalies proto to a file in text format.

[`write_schema_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/write_schema_text): Writes input schema to a file in text format.

[`write_stats_text(...)`](https://www.tensorflow.org/tfx/data_validation/api_docs/python/tfdv/write_stats_text): Writes a DatasetFeatureStatisticsList proto to a file in text format.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| **version** | `'1.16.1'` |

<br />