# tfl.premade_lib.build_calibrated_lattice_ensemble_layer

<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#L762-L823) |

Creates a calibration layer followed by a lattice ensemble layer.

#### View aliases


**Main aliases**

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

<br />

    tfl.premade_lib.build_calibrated_lattice_ensemble_layer(
        calibration_input_layer, model_config, average_outputs, dtype
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `calibration_input_layer` | A mapping from feature name to [`keras.Input`](https://www.tensorflow.org/api_docs/python/tf/keras/Input). |
| `model_config` | Model configuration object describing model architecture. Should be one of the model configs in [`tfl.configs`](https://www.tensorflow.org/lattice/api_docs/python/tfl/configs). |
| `average_outputs` | Whether to average the outputs of this layer. |
| `dtype` | dtype |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A [`tfl.layers.RTL`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/RTL) instance if model_config.lattices is 'rtl_layer. Otherwise a list of [`tfl.layers.Lattice`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/Lattice) instances. ||

<br />