Skip to content

Commit ef15b12

Browse files
mihaimaruseaccopybara-github
authored andcommitted
Comment out Boosted Trees code example
PiperOrigin-RevId: 424870204
1 parent 83f5d3c commit ef15b12

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

site/en/guide/migrate/canned_estimators.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
"id": "oEWYHNt4eOKD"
542542
},
543543
"source": [
544-
"In TensorFlow 1, you can use `tf.estimator.BoostedTreesEstimator` to create a baseline to create a baseline Gradient Boosting model using an ensemble of decision trees for regression and classification problems."
544+
"In TensorFlow 1, you could use `tf.estimator.BoostedTreesEstimator` to create a baseline to create a baseline Gradient Boosting model using an ensemble of decision trees for regression and classification problems. This functionality is not included in TensorFlow 2."
545545
]
546546
},
547547
{
@@ -552,12 +552,12 @@
552552
},
553553
"outputs": [],
554554
"source": [
555-
"bt_estimator = tf1.estimator.BoostedTreesEstimator(\n",
556-
" head=tf.estimator.BinaryClassHead(),\n",
557-
" n_batches_per_layer=1,\n",
558-
" max_depth=10,\n",
559-
" n_trees=1000,\n",
560-
" feature_columns=feature_columns)"
555+
"# bt_estimator = tf1.estimator.BoostedTreesEstimator(\n",
556+
"# head=tf.estimator.BinaryClassHead(),\n",
557+
"# n_batches_per_layer=1,\n",
558+
"# max_depth=10,\n",
559+
"# n_trees=1000,\n",
560+
"# feature_columns=feature_columns)"
561561
]
562562
},
563563
{
@@ -568,8 +568,8 @@
568568
},
569569
"outputs": [],
570570
"source": [
571-
"bt_estimator.train(input_fn=_input_fn, steps=1000)\n",
572-
"bt_estimator.evaluate(input_fn=_eval_input_fn, steps=100)"
571+
"# bt_estimator.train(input_fn=_input_fn, steps=1000)\n",
572+
"# bt_estimator.evaluate(input_fn=_eval_input_fn, steps=100)"
573573
]
574574
},
575575
{

0 commit comments

Comments
 (0)