View source on GitHub |
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
bytes_statistics() -> Optional[statistics_pb2.BytesStatistics]
Retrieve byte statistics if available.
common_statistics
common_statistics() -> Optional[statistics_pb2.CommonStatistics]
Retrieve common statistics if available.
custom_statistic
custom_statistic(
name: str
) -> Optional[statistics_pb2.CustomStatistic]
Retrieve a custom_statistic by name.
numeric_statistics
numeric_statistics() -> Optional[statistics_pb2.NumericStatistics]
Retrieve numeric statistics if available.
proto
proto() -> statistics_pb2.FeatureNameStatistics
Retrieve the underlying proto.
string_statistics
string_statistics() -> Optional[statistics_pb2.StringStatistics]
Retrieve string statistics if available.
struct_statistics
struct_statistics() -> Optional[statistics_pb2.StructStatistics]
Retrieve struct statistics if available.