Skip to content

Commit 049852f

Browse files
add warning to feature columns
PiperOrigin-RevId: 477822908
1 parent c2851e0 commit 049852f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

site/en/tutorials/estimator/linear.ipynb

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,31 @@
293293
"pd.concat([dftrain, y_train], axis=1).groupby('sex').survived.mean().plot(kind='barh').set_xlabel('% survive')"
294294
]
295295
},
296+
{
297+
"cell_type": "markdown",
298+
"metadata": {
299+
"id": "qCHvgeorEsHa"
300+
},
301+
"source": [
302+
"## Feature Engineering for the Model"
303+
]
304+
},
305+
{
306+
"cell_type": "markdown",
307+
"metadata": {
308+
"id": "Dhcq8Ds4mCtm"
309+
},
310+
"source": [
311+
"> Warning: The tf.feature_columns module described in this tutorial is not recommended for new code. Keras preprocessing layers cover this functionality, for migration instructions see the [Migrating feature columns guide](https://www.tensorflow.org/guide/migrate/migrating_feature_columns). The tf.feature_columns module was designed for use with TF1 Estimators. It does fall under our [compatibility guarantees](https://tensorflow.org/guide/versions), but will receive no fixes other than security vulnerabilities."
312+
]
313+
},
296314
{
297315
"cell_type": "markdown",
298316
"metadata": {
299317
"id": "VqDKQLZn8L-B"
300318
},
301319
"source": [
302-
"## Feature Engineering for the Model\n",
303-
"Estimators use a system called [feature columns](https://www.tensorflow.org/guide/feature_columns) to describe how the model should interpret each of the raw input features. An Estimator expects a vector of numeric inputs, and *feature columns* describe how the model should convert each feature.\n",
320+
"Estimators use a system called [feature columns](https://www.tensorflow.org/tutorials/structured_data/feature_columns) to describe how the model should interpret each of the raw input features. An Estimator expects a vector of numeric inputs, and *feature columns* describe how the model should convert each feature.\n",
304321
"\n",
305322
"Selecting and crafting the right set of feature columns is key to learning an effective model. A feature column can be either one of the raw inputs in the original features `dict` (a *base feature column*), or any new columns created using transformations defined over one or multiple base columns (a *derived feature columns*).\n",
306323
"\n",

0 commit comments

Comments
 (0)