# tfl.premade_lib.construct_prefitting_model_config

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/premade_lib.py#L1029-L1075) |

Constructs a model config for a prefitting model for crystal extraction.

#### View aliases


**Main aliases**

[`tfl.premade.premade_lib.construct_prefitting_model_config`](https://www.tensorflow.org/lattice/api_docs/python/tfl/premade_lib/construct_prefitting_model_config)

<br />

    tfl.premade_lib.construct_prefitting_model_config(
        model_config, feature_names=None
    )

### Used in the notebooks

| Used in the tutorials |
|---|
| - [TF Lattice Premade Models](https://www.tensorflow.org/lattice/tutorials/premade_models) |

<br />

<br />

<br />

| ## Args ||
|---|---|
| `model_config` | Model configuration object describing model architecture. Should be a `tfl.configs.CalibratedLatticeEnsemble` instance. |
| `feature_names` | A list of feature names. If not provided, feature names will be extracted from the feature configs contained in the model_config. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A [`tfl.configs.CalibratedLatticeEnsembleConfig`](https://www.tensorflow.org/lattice/api_docs/python/tfl/configs/CalibratedLatticeEnsembleConfig) instance. ||

<br />