tfma.extractors.Filter
Stay organized with collections
Save and categorize content based on your preferences.
Filters extracts to include/exclude specified keys.
tfma.extractors.Filter(
include: Optional[Union[Iterable[str], Dict[str, Any]]] = None,
exclude: Optional[Union[Iterable[str], Dict[str, Any]]] = None
) -> beam.pvalue.PCollection
Args |
extracts
|
PCollection of extracts.
|
include
|
List or map of keys to include in output. If a map of keys is
passed then the keys and sub-keys that exist in the map will be included
in the output. An empty dict behaves as a wildcard matching all keys or
the value itself. Since matching on feature values is not currently
supported, an empty dict must be used to represent the leaf nodes.
For example: {'key1': {'key1-subkey': {} }, 'key2': {} }.
|
exclude
|
List or map of keys to exclude from output. If a map of keys is
passed then the keys and sub-keys that exist in the map will be excluded
from the output. An empty dict behaves as a wildcard matching all keys or
the value itself. Since matching on feature values is not currently
supported, an empty dict must be used to represent the leaf nodes.
For example: {'key1': {'key1-subkey': {} }, 'key2': {} }.
|
Returns |
Filtered PCollection of Extracts.
|
Raises |
ValueError
|
If both include and exclude are used.
|
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-04-26 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-04-26 UTC."],[],[]]