Skip to content

Commit a3585be

Browse files
Neural-Link Teamtensorflow-copybara
authored andcommitted
Fixes typos in the the 1st graph Keras tutorial.
PiperOrigin-RevId: 293631855
1 parent 1f535b0 commit a3585be

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

g3doc/tutorials/graph_keras_mlp_cora.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
"source": [
321321
"## Hyperparameters\n",
322322
"\n",
323-
"We will use an instance of `HParams` to inclue various hyperparameters and\n",
323+
"We will use an instance of `HParams` to include various hyperparameters and\n",
324324
"constants used for training and evaluation. We briefly describe each of them\n",
325325
"below:\n",
326326
"\n",
@@ -402,7 +402,7 @@
402402
"\n",
403403
"In the input layer of our model, we will extract not just the 'words' and the\n",
404404
"'label' features from each sample, but also corresponding neighbor features\n",
405-
"based on the `hparams.num_neighbors`. Instances with fewer neighbors than\n",
405+
"based on the `hparams.num_neighbors` value. Instances with fewer neighbors than\n",
406406
"`hparams.num_neighbors` will be assigned dummy values for those non-existent\n",
407407
"neighbor features."
408408
]
@@ -425,7 +425,7 @@
425425
"\n",
426426
" Returns:\n",
427427
" A pair whose first value is a dictionary containing relevant features\n",
428-
" and whose second value contains the ground truth labels.\n",
428+
" and whose second value contains the ground truth label.\n",
429429
" \"\"\"\n",
430430
" # The 'words' feature is a multi-hot, bag-of-words representation of the\n",
431431
" # original raw text. A default value is required for examples that don't\n",
@@ -459,9 +459,8 @@
459459
" [1], tf.float32, default_value=tf.constant([0.0]))\n",
460460
"\n",
461461
" features = tf.io.parse_single_example(example_proto, feature_spec)\n",
462-
"\n",
463-
" labels = features.pop('label')\n",
464-
" return features, labels\n",
462+
" label = features.pop('label')\n",
463+
" return features, label\n",
465464
"\n",
466465
"\n",
467466
"def make_dataset(file_path, training=False):\n",

0 commit comments

Comments
 (0)