2. Some Technical Background
2.1 About Our Setup
We’re about to get down—funk style—with some coding. The chapters in this book started life as Jupyter notebooks. If you’re unfamiliar with Jupyter notebooks, they are a very cool environment for working with Python code, text, and graphics in one browser tab. Many Python-related blogs are built with Jupyter notebooks. At the beginning of each chapter, I’ll execute some lines of code to set up the coding environment.
The content of
mlwpy.py is shown in Appendix A. While
from module import * is generally not recommended, in this case I’m using it specifically to get all of the definitions in
mlwpy.py included in our notebook environment without taking up forty lines of code. Since scikit-learn ...