errata.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  4. <link href="./css" rel="stylesheet" type="text/css">
  5. <style>
  6. body {
  7. color: #333;
  8. font-size: 10px;
  9. padding: 40px;
  10. text-align: center;
  11. font-family: Lato, sans-serif;
  12. font-weight: 300;
  13. line-height: 1.5em;
  14. }
  15. .manning-logo {
  16. width: 75%;
  17. max-width: 500px;
  18. margin: auto;
  19. }
  20. .errata-body {
  21. text-align: left;
  22. width: 75%;
  23. max-width: 960px;
  24. margin: 40px auto;
  25. padding-top: calc(40px - 0.5em);
  26. padding-bottom: calc(20px - 0.5em);
  27. border-top: solid thin #333;
  28. border-bottom: solid thin #333;
  29. font-size: 2em;
  30. line-height: 1.5em;
  31. }
  32. .errata-body > * {
  33. padding: 0;
  34. margin: 0;
  35. margin-bottom: 20px;
  36. }
  37. .copyright {
  38. font-size: 1.25em;
  39. padding: 40px auto;
  40. }
  41. code {
  42. font-family: new courier;
  43. color: grey
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <div class="manning-logo">
  49. <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350 45" version="1.1">
  50. <style>
  51. .style0 {
  52. fill: #333;
  53. fill: #333;
  54. fill-rule: evenodd;
  55. }
  56. </style>
  57. <defs></defs>
  58. <g transform="translate(0,-1007.3622)">
  59. <g transform="matrix(1.0016907,0,0,0.99930881,500.03637,1045.9036)">
  60. <g transform="matrix(1.25,0,0,-1.25,-406.19425,6.278225)">
  61. <path d="m 0 0 -2.975 0 0 11.882 -1.961 -5.856 -1.324 0 -1.963 5.856 0 -11.882 -2.941 0 0 22.267 1.471 0 L -5.6 10.67 -1.473 22.267 0 22.267 0 0 z"
  62. class="style0"></path>
  63. </g>
  64. <g transform="matrix(1.25,0,0,-1.25,-395.52288,-1.7259)">
  65. <path d="M 0 0 -1.213 9.315 -2.424 0 0 0 z m 3.721 -6.403 -2.856 0 -0.549 3.95 -3.056 0 -0.52 -3.95 -2.713 0 3.375 22.266 2.946 0 3.373 -22.266 z"
  66. class="style0"></path>
  67. </g>
  68. <g transform="matrix(1.25,0,0,-1.25,-375.8695,6.278225)">
  69. <path d="m 0 0 -1.473 0 -4.99 12.689 0 -12.689 -2.943 0 0 22.267 1.472 0 4.961 -12.778 0 12.778 2.973 0 L 0 0 z"
  70. class="style0"></path>
  71. </g>
  72. <g transform="matrix(1.25,0,0,-1.25,-359.28263,6.278225)">
  73. <path d="m 0 0 -1.471 0 -4.99 12.689 0 -12.689 -2.945 0 0 22.267 1.472 0 4.961 -12.778 0 12.778 2.973 0 L 0 0 z"
  74. class="style0"></path>
  75. </g>
  76. <path d="m -350.628 6.278 -3.826 0 0 -27.834 3.826 0 0 27.834 z" class="style0"></path>
  77. <g transform="matrix(1.25,0,0,-1.25,-334.0775,6.278225)">
  78. <path d="m 0 0 -1.471 0 -4.992 12.689 0 -12.689 -2.943 0 0 22.267 1.472 0 4.961 -12.778 0 12.778 2.973 0 L 0 0 z"
  79. class="style0"></path>
  80. </g>
  81. <g transform="matrix(1.25,0,0,-1.25,-317.63463,5.45185)">
  82. <path d="m 0 0 c -0.867 -0.538 -1.961 -0.809 -3.289 -0.809 -4.311 0 -6.463 3.772 -6.463 11.309 0 7.501 2.039 11.253 6.115 11.253 0.674 0 1.321 -0.087 1.934 -0.262 l 0 -2.364 c -0.539 0.113 -0.992 0.17 -1.356 0.17 -2.406 0 -3.605 -2.931 -3.605 -8.797 0 -5.902 1.164 -8.856 3.49 -8.856 0.137 0 0.24 0.01 0.316 0.03 l 0 4.615 c 0 1.092 -0.125 1.846 -0.375 2.252 -0.191 0.325 -0.519 0.488 -0.978 0.488 -0.232 0 -0.397 -0.01 -0.492 -0.028 l 0 2.423 c 0.326 0.056 0.662 0.086 1.01 0.086 C -1.23 11.51 0 9.684 0 6.028 L 0 0 z"
  83. class="style0"></path>
  84. </g>
  85. <g transform="matrix(1.25,0,0,-1.25,-299.75388,-13.117525)">
  86. <path d="m 0 0 c 0 2.846 -0.854 4.271 -2.563 4.271 l 0 -9.81 c 0.479 0.077 0.977 0.508 1.497 1.301 C -0.355 -3.164 0 -1.751 0 0 m 3.087 -0.029 c 0 -2.556 -0.788 -4.655 -2.364 -6.285 -1.039 -1.062 -2.133 -1.746 -3.286 -2.051 l 0 -7.152 -3.06 0 0 22.267 2.335 0 c 1.829 0 3.3 -0.487 4.417 -1.469 1.305 -1.175 1.958 -2.944 1.958 -5.31"
  87. class="style0"></path>
  88. </g>
  89. <g transform="matrix(1.25,0,0,-1.25,-281.10875,-0.567525)">
  90. <path d="m 0 0 c 0 -1.844 -0.471 -3.277 -1.412 -4.298 -0.83 -0.883 -1.875 -1.326 -3.145 -1.326 -1.252 0 -2.291 0.443 -3.115 1.326 -0.924 1.021 -1.387 2.454 -1.387 4.298 l 0 16.79 3.059 0 0 -17.392 c 0 -0.83 0.145 -1.463 0.432 -1.907 0.289 -0.439 0.625 -0.663 1.011 -0.663 0.385 0 0.731 0.224 1.037 0.663 0.309 0.444 0.463 1.077 0.463 1.907 l 0 17.392 L 0 16.79 0 0 z"
  91. class="style0"></path>
  92. </g>
  93. <g transform="matrix(1.25,0,0,-1.25,-268.9555,-2.9149)">
  94. <path d="M 0 0 C 0 2.057 -0.549 3.633 -1.645 4.73 -2.051 4.596 -2.465 4.527 -2.887 4.527 l 0 -9.432 c 0.791 0 1.434 0.337 1.934 1.009 C -0.32 -3.05 0 -1.751 0 0 m -0.607 9.749 c 0 1.751 -0.758 2.654 -2.28 2.711 l 0 -5.394 c 1.522 0.039 2.28 0.933 2.28 2.683 M 3.115 0 c 0 -2.674 -0.711 -4.638 -2.135 -5.886 -1.134 -0.981 -2.644 -1.468 -4.527 -1.468 l -2.396 0 0 22.266 2.451 0 c 1.597 0 2.931 -0.394 4.01 -1.182 C 1.787 12.808 2.422 11.48 2.422 9.749 2.422 8.02 1.865 6.719 0.748 5.855 1.307 5.412 1.807 4.771 2.25 3.924 2.824 2.75 3.115 1.441 3.115 0"
  95. class="style0"></path>
  96. </g>
  97. <g transform="matrix(1.25,0,0,-1.25,-251.973,6.278225)">
  98. <path d="m 0 0 -7.182 0 0 22.267 3.057 0 0 -19.818 L 0 2.449 0 0 z" class="style0"></path>
  99. </g>
  100. <path d="m -244.834 6.278 -3.824 0 0 -27.834 3.824 0 0 27.834 z" class="style0"></path>
  101. <g transform="matrix(1.25,0,0,-1.25,-231.13075,6.20985)">
  102. <path d="m 0 0 c -0.463 -0.135 -0.963 -0.202 -1.502 -0.202 -4.078 0 -6.115 3.771 -6.115 11.308 0 7.501 2.037 11.253 6.115 11.253 0.539 0 1.039 -0.07 1.502 -0.204 L 0 19.76 c -0.52 0.096 -0.867 0.143 -1.039 0.143 -2.326 0 -3.488 -2.93 -3.488 -8.797 0 -5.902 1.181 -8.856 3.547 -8.856 0.228 0 0.556 0.041 0.98 0.115 L 0 0 z"
  103. class="style0"></path>
  104. </g>
  105. <g transform="matrix(1.25,0,0,-1.25,-221.61175,-1.7259)">
  106. <path d="M 0 0 -1.211 9.315 -2.424 0 0 0 z m 3.721 -6.403 -2.856 0 -0.545 3.95 -3.06 0 -0.52 -3.95 -2.711 0 3.375 22.266 2.942 0 3.375 -22.266 z"
  107. class="style0"></path>
  108. </g>
  109. <g transform="matrix(1.25,0,0,-1.25,-203.97988,-18.4899)">
  110. <path d="m 0 0 -2.973 0 0 -19.814 -3.056 0 0 19.814 -2.971 0 0 2.452 9 0 L 0 0 z"
  111. class="style0"></path>
  112. </g>
  113. <path d="m -196.839 6.278 -3.824 0 0 -27.834 3.824 0 0 27.834 z" class="style0"></path>
  114. <g transform="matrix(1.25,0,0,-1.25,-183.82125,-7.637775)">
  115. <path d="m 0 0 c 0 5.884 -0.664 8.825 -1.992 8.825 -1.326 0 -1.99 -2.941 -1.99 -8.825 0 -5.884 0.664 -8.828 1.99 -8.828 C -0.664 -8.828 0 -5.884 0 0 m 3.057 0 c 0 -4.367 -0.537 -7.453 -1.616 -9.26 -0.789 -1.344 -1.933 -2.02 -3.433 -2.02 -1.5 0 -2.654 0.676 -3.461 2.02 -1.076 1.807 -1.615 4.893 -1.615 9.26 0 4.365 0.539 7.454 1.615 9.259 0.807 1.345 1.961 2.022 3.461 2.022 1.5 0 2.644 -0.677 3.433 -2.022 C 2.52 7.454 3.057 4.365 3.057 0"
  116. class="style0"></path>
  117. </g>
  118. <g transform="matrix(1.25,0,0,-1.25,-164.02625,6.278225)">
  119. <path d="m 0 0 -1.471 0 -4.992 12.689 0 -12.689 -2.939 0 0 22.267 1.468 0 4.961 -12.778 0 12.778 2.973 0 L 0 0 z"
  120. class="style0"></path>
  121. </g>
  122. <g transform="matrix(1.25,0,0,-1.25,-149.78313,-0.71765)">
  123. <path d="m 0 0 c 0 -1.887 -0.564 -3.35 -1.701 -4.387 -1.002 -0.905 -2.221 -1.357 -3.666 -1.357 -1.192 0 -2.192 0.26 -2.998 0.779 l 1.068 2.164 c 0.518 -0.306 1.164 -0.461 1.93 -0.461 0.597 0 1.117 0.231 1.56 0.694 0.498 0.535 0.75 1.297 0.75 2.278 0 1.593 -0.826 3.566 -2.482 5.912 -0.981 1.402 -1.672 2.571 -2.076 3.505 -0.403 0.934 -0.608 1.929 -0.608 2.988 0 1.441 0.43 2.584 1.285 3.43 0.856 0.848 2.004 1.272 3.448 1.272 1.002 0 1.799 -0.194 2.392 -0.579 l -1.037 -2.134 c -0.443 0.19 -0.906 0.289 -1.385 0.289 -0.5 0 -0.908 -0.18 -1.226 -0.536 -0.317 -0.353 -0.475 -0.83 -0.475 -1.426 0 -0.734 0.221 -1.519 0.662 -2.365 C -4.27 9.47 -3.711 8.585 -2.885 7.412 -1.883 5.97 -1.172 4.758 -0.75 3.775 -0.25 2.564 0 1.303 0 0"
  124. class="style0"></path>
  125. </g>
  126. <g transform="matrix(1.25,0,0,-1.25,-490.70113,-38.568025)">
  127. <path d="m 0 0 20.963 0 0 -22.049 C 22.164 -14.783 23.195 -7.35 24.311 0 l 20.964 0 0 -36.024 -19.783 0 0 30.906 C 23.877 -15.348 22.32 -25.64 20.865 -36.024 l -19.681 0 0 32.187 c -2.13 -10.642 -4.026 -21.507 -6.108 -32.187 l -1.869 0 c 2.242 11.898 4.472 23.809 6.693 35.728 C -0.109 -0.153 -0.115 -0.017 0 0"
  128. class="style1"></path>
  129. </g>
  130. </g>
  131. </g>
  132. </svg>
  133. </div>
  134. <div class="errata-body">
  135. <img style="float:left;width:150px;height:180px;border:1px solid black;margin:0px 10px 0px 0px;"
  136. src="./Stevens-DLPy-HI.png">
  137. Errata: August 6, 2020
  138. <br/><br/>
  139. Thank you for purchasing
  140. <a href="https://www.manning.com/books/deep-learning-with-pytorch" target="_blank"><i>Deep
  141. Learning with PyTorch</i></a>.
  142. Please post errata not listed below in this book's <a
  143. href="https://livebook.manning.com/book/deep-learning-with-pytorch/welcome/v-13/" target="_blank">LiveBook
  144. Errata thread</a>.
  145. We'll update this list as necessary. Thank you!
  146. <br/><br/><br/><br/>
  147. <h2>Page xxviii</h2>
  148. <p>The "about this cover" section incorrectly identifies the individual on the cover as Kardinian, but he is
  149. Ka<strong>bard</strong>ian.</p>
  150. <h2>Page 5</h2>
  151. <p>Figure 1.1 was incorrectly flipped left-to-right.</p>
  152. <h2>Page 195</h2>
  153. <p>The third code snippet incorrectly referenced "i22" instead of "i13" in the first line. The full listing should be:
  154. <pre>
  155. o11 = i11 * w00 + i12 * w01 + i13 * w02 +
  156. i21 * w10 + i22 * w11 + i23 * w12 +
  157. i31 * w20 + i32 * w21 + i33 * w22
  158. </pre>
  159. </p>
  160. <h2>Page 205</h2>
  161. <p>The reference to a "MaxPool3d" should be "MaxPool2d".</p>
  162. <h2>Page 252</h2>
  163. <p><i>The final paragraph of section 9.4.4 should read:</i></p>
  164. <p>
  165. Once you have the candidates file and at least one subset downloaded, uncompressed,
  166. and put in the correct location, you should be able to start running the examples in
  167. the next chapter. If you want to jump ahead, you can use the p2ch10_explore_data.ipynb
  168. Jupyter Notebook to get started. Otherwise, we’ll return to the notebook in
  169. more depth in the next chapter. Hopefully your downloads will finish before you start
  170. needing to use the data!
  171. </p>
  172. <h2>Page 258</h2>
  173. <p><i>The first code annotation should read:</i></p>
  174. <p>
  175. Counts the number of lines
  176. that end with 1, which
  177. indicates it is a nodule
  178. </p>
  179. <p><i>The end of the first paragraph should read:</i></p>
  180. <p>
  181. (it's a Boolean value: 0 for a candidate that is not a nodule, e.g. a blood vessel, and 1 for a
  182. candidate that is a nodule, which can be malignant or benign). We have 1,351 of the nodule candidates
  183. flagged as nodules.
  184. </p>
  185. <h2>Page 272</h2>
  186. <p>Delete the two text snippets "1((CO10-1))" and "1((CO10-2))" from Listing 10.12.</p>
  187. <pre>
  188. candidate_t,
  189. pos_t,
  190. </pre>
  191. <p>The code annotation "This is our training sample." should cover those two lines as well.</p>
  192. <h2>Page 277</h2>
  193. <p><i>The first code annotation should read:</i></p>
  194. <p>
  195. <pre>
  196. # In[7]:
  197. from p2ch10.vis import findPositiveSamples, showCandidate
  198. positiveSample_list = findPositiveSamples()
  199. </pre>
  200. </p>
  201. </div>
  202. <div class="copyright">
  203. &copy; 2020 Manning Publications Co. All rights reserved.
  204. </div>
  205. </body>
  206. </html>