tfdv.DatasetView

View of statistics for a dataset (slice).

Methods

get_cross_feature

View source

Retrieve a cross-feature if it exists, or None.

get_derived_feature

View source

Retrieve a derived feature based on a deriver name and its inputs.

Args
deriver_name The name of a deriver. Matches validation_derived_source deriver_name.
source_paths Source paths for derived features. Matches validation_derived_source.source_path.

Returns
FeatureView of derived feature.

Raises
ValueError if multiple derived features match.

get_feature

View source

Retrieve a feature if it exists.

Features specified within the underlying proto by name (instead of path) are normalized to a length 1 path, and can be referred to as such.

Args
feature_id A types.FeaturePath, Iterable[str] consisting of path steps, or a str, which is converted to a length one path.

Returns
A FeatureView, or None if feature_id is not present.

list_cross_features

View source

Lists cross-feature identifiers.

list_features

View source

Lists feature identifiers.

proto

View source

Retrieve the underlying proto.