tfdv.FeatureView
Stay organized with collections
Save and categorize content based on your preferences.
View of a single feature.
tfdv.FeatureView(
stats_proto: statistics_pb2.FeatureNameStatistics
)
This class provides accessor methods, as well as access to the underlying
proto. Where possible, accessors should be used in place of proto access (for
example, x.numeric_statistics() instead of x.proto().num_stats) in order to
support future extension of the proto.
Methods
bytes_statistics
View source
bytes_statistics() -> Optional[statistics_pb2.BytesStatistics]
Retrieve byte statistics if available.
common_statistics
View source
common_statistics() -> Optional[statistics_pb2.CommonStatistics]
Retrieve common statistics if available.
custom_statistic
View source
custom_statistic(
name: str
) -> Optional[statistics_pb2.CustomStatistic]
Retrieve a custom_statistic by name.
numeric_statistics
View source
numeric_statistics() -> Optional[statistics_pb2.NumericStatistics]
Retrieve numeric statistics if available.
proto
View source
proto() -> statistics_pb2.FeatureNameStatistics
Retrieve the underlying proto.
string_statistics
View source
string_statistics() -> Optional[statistics_pb2.StringStatistics]
Retrieve string statistics if available.
struct_statistics
View source
struct_statistics() -> Optional[statistics_pb2.StructStatistics]
Retrieve struct statistics if available.
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-10-18 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-10-18 UTC."],[],[],null,["# tfdv.FeatureView\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L562-L628) |\n\nView of a single feature. \n\n tfdv.FeatureView(\n stats_proto: statistics_pb2.FeatureNameStatistics\n )\n\nThis class provides accessor methods, as well as access to the underlying\nproto. Where possible, accessors should be used in place of proto access (for\nexample, x.numeric_statistics() instead of x.proto().num_stats) in order to\nsupport future extension of the proto.\n\nMethods\n-------\n\n### `bytes_statistics`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L605-L609) \n\n bytes_statistics() -\u003e Optional[statistics_pb2.BytesStatistics]\n\nRetrieve byte statistics if available.\n\n### `common_statistics`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L617-L628) \n\n common_statistics() -\u003e Optional[statistics_pb2.CommonStatistics]\n\nRetrieve common statistics if available.\n\n### `custom_statistic`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L578-L588) \n\n custom_statistic(\n name: str\n ) -\u003e Optional[statistics_pb2.CustomStatistic]\n\nRetrieve a custom_statistic by name.\n\n### `numeric_statistics`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L593-L597) \n\n numeric_statistics() -\u003e Optional[statistics_pb2.NumericStatistics]\n\nRetrieve numeric statistics if available.\n\n### `proto`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L574-L576) \n\n proto() -\u003e statistics_pb2.FeatureNameStatistics\n\nRetrieve the underlying proto.\n\n### `string_statistics`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L599-L603) \n\n string_statistics() -\u003e Optional[statistics_pb2.StringStatistics]\n\nRetrieve string statistics if available.\n\n### `struct_statistics`\n\n[View source](https://github.com/tensorflow/data-validation/blob/v1.16.1/tensorflow_data_validation/utils/stats_util.py#L611-L615) \n\n struct_statistics() -\u003e Optional[statistics_pb2.StructStatistics]\n\nRetrieve struct statistics if available."]]