Sliced statistics are flattened into a single unsliced stats input prior to
validation. If multiple statistics are provided, validation is performed on
corresponding slices. DatasetConstraints, if present, are applied to the
overall slice.
Args
statistics
See validate_statistics.
schema
See validate_statistics.
environment
See validate_statistics.
previous_statistics
See validate_statistics.
serving_statistics
See validate_statistics.
Returns
An Anomalies protocol buffer.
Raises
TypeError
If any of the input arguments is not of the expected type.
[[["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-10-18 UTC."],[],[],null,["# tfdv.validate_corresponding_slices\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/api/validation_api.py#L938-L982) |\n\nValidates corresponding sliced statistics. \n\n tfdv.validate_corresponding_slices(\n statistics: statistics_pb2.DatasetFeatureStatisticsList,\n schema: schema_pb2.Schema,\n environment: Optional[Text] = None,\n previous_statistics: Optional[statistics_pb2.DatasetFeatureStatisticsList] = None,\n serving_statistics: Optional[statistics_pb2.DatasetFeatureStatisticsList] = None\n ) -\u003e anomalies_pb2.Anomalies\n\nSliced statistics are flattened into a single unsliced stats input prior to\nvalidation. If multiple statistics are provided, validation is performed on\ncorresponding slices. DatasetConstraints, if present, are applied to the\noverall slice.\n| **Note:** This API is experimental and subject to change.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------------|--------------------------|\n| `statistics` | See validate_statistics. |\n| `schema` | See validate_statistics. |\n| `environment` | See validate_statistics. |\n| `previous_statistics` | See validate_statistics. |\n| `serving_statistics` | See validate_statistics. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| An Anomalies protocol buffer. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|-------------|------------------------------------------------------------|\n| `TypeError` | If any of the input arguments is not of the expected type. |\n\n\u003cbr /\u003e"]]