View source on GitHub |
Get statistics associated with a specific slice.
tfdv.get_slice_stats(
stats: statistics_pb2.DatasetFeatureStatisticsList, slice_key: Text
) -> statistics_pb2.DatasetFeatureStatisticsList
Args | |
---|---|
stats
|
A DatasetFeatureStatisticsList protocol buffer. |
slice_key
|
Slice key of the slice. |
Returns | |
---|---|
Statistics of the specific slice. |
Raises | |
---|---|
ValueError
|
If the input statistics proto does not have the specified slice statistics. |