Code First Machine Learning: An Experiment-First Guide for Programmers

· No Starch Press
Ebook
304
Pages
Tools
Eligible
This book will become available on July 13, 2027. You will not be charged until it is released.

About this ebook

Learn to read, modify, and evaluate real machine-learning code by examining the lines that matter, running the programs, and understanding why models succeed or fail.

Read the code. Run the model. Know why it works.

AI can write machine-learning code in seconds. But understanding why it works (or why it fails) is another matter.

Code First Machine Learning teaches you to read the code that makes a model behave the way it does. Instead of burying the crucial logic in downloadable scripts, Ronald T. Kneusel brings the important lines onto the page and shows you how to interpret them. You'll see the code, understand the choices it makes, run it, and discover what the results really mean.

Start with neural networks and handwritten-digit classification. Then investigate how data preparation, class balance, and test splits change the conclusions you can draw from a model. Build on that foundation with convolutional networks, transfer learning, object detection, zero-shot and few-shot learning, and techniques behind modern language models.

Each example gives you a practical way to ask better questions: Which lines matter? What assumptions are hiding here? Why did the result change? What would happen if you modified the code?

Anyone, including an AI assistant, can hand you a script. This book teaches you to read it critically, modify it deliberately, and decide whether its output deserves your trust.

YOU’LL LEARN TO:
  • Read the essential code in a machine-learning example and explain the choices it makes
  • Run and modify models to test how inputs and design decisions affect results
  • Recognize misleading accuracy measures and problems with training and test data
  • Explore CNNs, transfer learning, object detection, and zero-shot and few-shot approaches
  • Interpret what a model’s output proves, and what it doesn’t

Covers: Python-based ML and deep learning, datasets, model evaluation, neural networks, CNNs, transfer learning, object detection, CLIP, zero-shot/few-shot learning, and language-model concepts.

Python familiarity recommended.
Learn to read, modify, and evaluate real machine-learning code by examining the lines that matter, running the programs, and understanding why models succeed or fail. Read the code. Run the model. Know why it works. AI can write machine-learning code in seconds. But understanding why it works (...

Discover more

About the author

Ronald T. Kneusel builds deep learning systems in industry and has extensive experience in medical imaging and medical-device development. He holds a PhD in computer science from the University of Colorado Boulder, along with degrees in physics and mathematics, and has been programming since the early days of personal computing. He is the author of several well-regarded books on computing, mathematics, and AI.
Ronald T. Kneusel builds deep learning systems in industry and has extensive experience in medical imaging and medical-device development. He holds a PhD in computer science from the University of Colorado Boulder, along with degrees in physics and mathematics, and has been programming since the ...

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.