# tfl.premade_lib.build_linear_combination_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#L826-L867) |

Creates a [`tfl.layers.Linear`](https://www.tensorflow.org/lattice/api_docs/python/tfl/layers/Linear) layer initialized to be an average.

#### View aliases


**Main aliases**

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

<br />

    tfl.premade_lib.build_linear_combination_layer(
        ensemble_outputs, model_config, dtype
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `ensemble_outputs` | Ensemble outputs to be linearly combined. |
| `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). |
| `dtype` | dtype |

<br />

<br />

<br />

<br />

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

<br />