Skip to content

Commit

Permalink
small typo fix in nb 16, minitot_batch_length -> mini_batch_length
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Aug 29, 2018
1 parent 9706774 commit 7692c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ch16/ch16.ipynb
Expand Up @@ -1633,7 +1633,7 @@
"def reshape_data(sequence, batch_size, num_steps):\n",
" mini_batch_length = batch_size * num_steps\n",
" num_batches = int(len(sequence) / mini_batch_length)\n",
" if num_batches*minitot_batch_length + 1 > len(sequence):\n",
" if num_batches*mini_batch_length + 1 > len(sequence):\n",
" num_batches = num_batches - 1\n",
" ## Truncate the sequence at the end to get rid of \n",
" ## remaining charcaters that do not make a full batch\n",
Expand Down Expand Up @@ -2866,7 +2866,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.6.6"
},
"toc": {
"nav_menu": {},
Expand Down

0 comments on commit 7692c64

Please sign in to comment.