Skip to content

Commit 5225bd8

Browse files
committedFeb 17, 2018
Adding a clean version of iris
1 parent de0d047 commit 5225bd8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎iris/iris.ipynb

+1-5
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"cell_type": "code",
124-
"execution_count": 1,
124+
"execution_count": null,
125125
"metadata": {
126126
"collapsed": false
127127
},
@@ -202,15 +202,11 @@
202202
"outputs": [],
203203
"source": [
204204
"def _parse_function(example_proto):\n",
205-
" #features = {\"feature\": tf.FixedLenFeature((4), tf.float32, default_value=0),\n",
206-
" # \"label\": tf.FixedLenFeature((), tf.int64, default_value=0)}\n",
207205
" features = {\"feature\": tf.VarLenFeature(tf.float32),\n",
208206
" \"label\": tf.FixedLenFeature((), tf.int64, default_value=0)}\n",
209207
" parsed_features = tf.parse_single_example(example_proto, features)\n",
210-
" #feature = tf.decode_raw(parsed_features[\"feature\"], tf.float32)\n",
211208
" feature = tf.cast(parsed_features[\"feature\"], tf.float32)\n",
212209
" feature = tf.sparse_tensor_to_dense(feature, default_value=0)\n",
213-
" #feature = tf.reshape(feature, [4])\n",
214210
" label_one_hot = tf.one_hot(parsed_features[\"label\"], depth=3)\n",
215211
" return feature, label_one_hot\n",
216212
"\n",

0 commit comments

Comments
 (0)
Please sign in to comment.