Returns preprocessor for including features in StandardMetricInputs.
tfma.metrics.FeaturePreprocessor(
feature_keys: Iterable[str],
include_default_inputs: bool = True,
model_names: Optional[Iterable[str]] = None,
output_names: Optional[Iterable[str]] = None
) -> StandardMetricInputsPreprocessor
Args |
feature_keys
|
List of feature keys. An empty list means all.
|
include_default_inputs
|
True to include default inputs (labels, predictions,
example weights) in addition to the features.
|
model_names
|
Optional model names. Only used if include_default_inputs is
True. If unset all models will be included with the default inputs.
|
output_names
|
Optional output names. Only used if include_default_inputs is
True. If unset all outputs will be included with the default inputs.
|