Skip to content

Commit

Permalink
Spelling and total batch size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaqibsaeed authored Nov 22, 2016
1 parent ffe388b commit 8f7cf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Activity Detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"learning_rate = 0.0001\n",
"training_epochs = 8\n",
"\n",
"total_batchs = reshaped_segments.shape[0] // batch_size"
"total_batches = train_x.shape[0] // batch_size"
]
},
{
Expand Down Expand Up @@ -228,7 +228,7 @@
"with tf.Session() as session:\n",
" tf.initialize_all_variables().run()\n",
" for epoch in range(training_epochs):\n",
" for b in range(total_batchs): \n",
" for b in range(total_batches): \n",
" offset = (b * batch_size) % (train_y.shape[0] - batch_size)\n",
" batch_x = train_x[offset:(offset + batch_size), :, :, :]\n",
" batch_y = train_y[offset:(offset + batch_size), :]\n",
Expand Down

0 comments on commit 8f7cf20

Please sign in to comment.