tfma.extractors.PredictExtractor
Stay organized with collections
Save and categorize content based on your preferences.
Creates an Extractor for TFMAPredict.
tfma.extractors.PredictExtractor(
eval_shared_model: tfma.types.MaybeMultipleEvalSharedModels
,
desired_batch_size: Optional[int] = None,
materialize: Optional[bool] = True,
eval_config: Optional[tfma.EvalConfig
] = None
) -> tfma.extractors.Extractor
The extractor's PTransform loads and runs the eval_saved_model against every
example yielding a copy of the Extracts input with an additional extract
of type FeaturesPredictionsLabels keyed by
tfma.FEATURES_PREDICTIONS_LABELS_KEY unless eval_config is not None in which
case the features, predictions, and labels will be stored separately under
tfma.FEATURES_KEY, tfma.PREDICTIONS_KEY, and tfma.LABELS_KEY respectively.
Args |
eval_shared_model
|
Shared model (single-model evaluation) or list of shared
models (multi-model evaluation).
|
desired_batch_size
|
Optional batch size for batching in Aggregate.
|
materialize
|
True to call the FeatureExtractor to add MaterializedColumn
entries for the features, predictions, and labels.
|
eval_config
|
Eval config.
|
Returns |
Extractor for extracting features, predictions, labels, and other tensors
during predict.
|
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."],[],[]]