Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
outlace committed Jul 11, 2020
1 parent 3d32324 commit 998de51
Show file tree
Hide file tree
Showing 31 changed files with 5,414 additions and 1,580 deletions.
416 changes: 416 additions & 0 deletions Appendix/Appendix.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Chapter 10/Ch10_book.ipynb
Expand Up @@ -186,7 +186,7 @@
" correct[[rows,yt.detach().long()]] = 1.\n",
" loss = lossfn(pred,yt)\n",
" loss.backward()\n",
"opt.step()"
" opt.step()"
]
},
{
Expand Down Expand Up @@ -535,9 +535,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:deeprl]",
"display_name": "Python 3",
"language": "python",
"name": "conda-env-deeprl-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -549,9 +549,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Binary file removed Chapter 5/avg_rewards.pdf
Binary file not shown.
Binary file removed Chapter 5/avg_rewards.png
Binary file not shown.
Binary file removed Chapter 5/avg_rewards_Nstep.pdf
Binary file not shown.
Binary file removed Chapter 5/avg_rewards_Nstep.png
Binary file not shown.
Binary file removed Chapter 6/dqn_1_loss_plot.pdf
Binary file not shown.
Binary file removed Chapter 6/simulator_loss_plot.png
Binary file not shown.
1,571 changes: 0 additions & 1,571 deletions Chapter 9/Ch9 Mean Field Q-learning.ipynb

This file was deleted.

8 changes: 4 additions & 4 deletions Chapter 9/Ch9_book.ipynb
Expand Up @@ -897,9 +897,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:deeprl]",
"display_name": "Python 3",
"language": "python",
"name": "conda-env-deeprl-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -911,9 +911,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
1 change: 1 addition & 0 deletions Environments/MAgent
Submodule MAgent added at 84f0dd
44 changes: 44 additions & 0 deletions Errata.md
@@ -0,0 +1,44 @@
# Errata
Here we keep an updated list of book errata listed by chapter. The errata will be addressed periodically in the eBook and liveBook versions and less frequently in print versions. We highly recommend using the GitHub code when following along the book as it is very difficult to maintain code within the book text.

## Chapter 2

### Section 2.4.1
Code should be:
>>> x = torch.Tensor([2,4]) #input data
>>> m = torch.randn(2, requires_grad=True) #parameter 1
>>> b = torch.randn(1, requires_grad=True) #parameter 2
>>> y = m*x+b #linear model
>>> y_known = torch.Tensor([5,9])
>>> loss = (torch.sum(y_known - y))**2 #loss function
>>> loss.backward() #calculate gradients
>>> m.grad
tensor([ -51.9402, -103.8803])

### Listing 2.10
Code should be:
def train(env, epochs=10000, learning_rate=1e-3):

### Section 2.5
Text should say: “When we train this network for 10,000 epochs”

### In Summary, in bullet point 5
“with probability ε – 1” should be “with probability 1 - ε “

## Chapter 3

### Listing 3.8
First line of code should be: from IPython.display import clear_output


## Chapter 4










705 changes: 705 additions & 0 deletions Errata/Chapter 2.ipynb

Large diffs are not rendered by default.

970 changes: 970 additions & 0 deletions Errata/Chapter 3.ipynb

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions Errata/Chapter 4.ipynb

Large diffs are not rendered by default.

0 comments on commit 998de51

Please sign in to comment.