# tf.contrib.estimator.linear_logit_fn_builder

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator/python/estimator/canned/linear.py) |

Function builder for a linear logit_fn.

#### View aliases


**Main aliases**

\`tf.estimator.experimental.linear_logit_fn_builder\`
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.estimator.experimental.linear_logit_fn_builder`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/estimator/experimental/linear_logit_fn_builder)

<br />

    tf.contrib.estimator.linear_logit_fn_builder(
        units, feature_columns, sparse_combiner='sum'
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `units` | An int indicating the dimension of the logit layer. |
| `feature_columns` | An iterable containing all the feature columns used by the model. |
| `sparse_combiner` | A string specifying how to reduce if a categorical column is multivalent. One of "mean", "sqrtn", and "sum". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A logit_fn (see below). ||

<br />