Book available from Amazon at http://TK
Only three chapters in the book contain explicit code. Chapter 15 discusses the Scikit-Learn library, and Chapters 23 and 24 discuss the Keras library. All of the code in these chapters is in Python, and is provided in Jupyter notebooks.
Most other chapters in the book contain at least some figures that were generated procedurally using Python. Those chapters also have associated notebooks which are available here. Those notebooks are not part of the book itself, but are offered as a kind of "behind the scenes" look at how the figures were made for those who want to dig into the process. These notebooks are only lightly documented.
Because of their role as learning materials, all of the code in these notebooks was written to emphasize clarity over all other stylistic concerns. This means that much of it can be shortened, and probably made faster as well. Feel free to dig in, optimize, convert to other languages, or otherwise play with the code.
All the notebooks are released under the MIT license. Informally, you're free to do pretty much anything with the code, including using it in your own projects, or even including it in commercial projects, as long as you keep my copyright along with the code. While I strove for accuracy and correctness, there is no warranty that the code is bug-free or fit for any purpose.
Some notebooks work with images. The images I used in the book are included with the notebooks. See the section below on Figures for details on their licensing, and see the book for the URL where each image may be found. All images without an explicit citation in the book are by the author, and are released under the MIT license.
The code for Volumes 1 and 2 are each in their own GitHub repo:
The book is illustrated with roughly 1000 original figures. Most were drawn by the author in Adobe Illustrator. A few were drawn in Photoshop.
Most of these images are saved at high resolution (300 dpi or better), so they are appropriate for presentaitons and talks even when projected to large size.
All of these figures are released under the MIT license, like the code. This means you're free to use them any way you like, as long as you keep the copyright associated with them somehow.
You're not required to attribute me or the book if you use these images, but I'd appreciate it if you would.
Some figures include photographs. Many of these are by the author. All other photos are from Wikiart, Wikimedia, or Pixabay. The book provides a citation and URL to the source of each of these images. The first two sites state that their images are in the public domain. All images selected from Pixabay are labeled as released under the Creative Commons CC0 license, and explicitly state, "Free for commercial use. No attribution required."
The figures for Volumes 1 and 2 are each in their own GitHub repo: