# tfma.ModelSpec

<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/proto/config.proto) |

A ProtocolMessage

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Better ML Engineering with ML Metadata](https://www.tensorflow.org/tfx/tutorials/mlmd/mlmd_tutorial) - [TFX Estimator Component Tutorial](https://www.tensorflow.org/tfx/tutorials/tfx/components) - [TFX Keras Component Tutorial](https://www.tensorflow.org/tfx/tutorials/tfx/components_keras) - [Model analysis using TFX Pipeline and TensorFlow Model Analysis](https://www.tensorflow.org/tfx/tutorials/tfx/penguin_tfma) |

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `example_weight_key` | `string example_weight_key` |
| `example_weight_keys` | `repeated ExampleWeightKeysEntry example_weight_keys` |
| `inference_batch_size` | `int32 inference_batch_size` |
| `is_baseline` | `bool is_baseline` |
| `label_key` | `string label_key` |
| `label_keys` | `repeated LabelKeysEntry label_keys` |
| `model_type` | `string model_type` |
| `name` | `string name` |
| `padding_options` | `PaddingOptions padding_options` |
| `prediction_key` | `string prediction_key` |
| `prediction_keys` | `repeated PredictionKeysEntry prediction_keys` |
| `preprocessing_function_names` | `repeated string preprocessing_function_names` |
| `signature_name` | `string signature_name` |

<br />

## Child Classes

[`class ExampleWeightKeysEntry`](https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/ModelSpec/ExampleWeightKeysEntry)

[`class LabelKeysEntry`](https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/ModelSpec/LabelKeysEntry)

[`class PredictionKeysEntry`](https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/ModelSpec/PredictionKeysEntry)