Commit 6a72aec2 authored by Mark Daoust's avatar Mark Daoust
Browse files

Created using Colaboratory

parent a17440f7
...@@ -411,8 +411,7 @@ ...@@ -411,8 +411,7 @@
"cell_type": "code", "cell_type": "code",
"source": [ "source": [
"def pack_features_vector(features,labels):\n", "def pack_features_vector(features,labels):\n",
" values = [value for value in features.values()]\n", " features = tf.stack(list(features.values()), axis=1)\n",
" features = tf.stack(values, axis=1)\n",
" return features, labels\n", " return features, labels\n",
" \n", " \n",
"train_dataset = train_dataset.map(pack_features_vector)" "train_dataset = train_dataset.map(pack_features_vector)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment