# tfma.metrics.FeaturePreprocessor

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/model-analysis/blob/v0.46.0/tensorflow_model_analysis/metrics/metric_types.py#L1046-L1073) |

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

<br />

<br />

<br />

| ## 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. |

<br />