Skip to Content
Learning AutoML
book

Learning AutoML

by Kerem Tomak
April 2026
Intermediate to advanced
592 pages
16h 26m
English
O'Reilly Media, Inc.
Content preview from Learning AutoML

Chapter 5. Hyperparameter Optimization

I remember the first time I encountered a poorly tuned machine learning model in production. It was 2018, and I was working at a bank that had deployed a fraud detection system. The model, a gradient boosting classifier with all the right features, was conceptually sound, but its performance was mediocre at best. The false positive rate was so high that legitimate transactions were being flagged constantly, frustrating customers and incurring costs for the company. The problem wasn’t the algorithm or the data. It was the hyperparameters.

After spending just two days systematically tuning the hyperparameters—using a combination of domain intuition and random search with cross-validation, adjusting the learning rate to 0.05, increasing the number of estimators to 300, and setting the maximum depth to 4—we improved the model’s precision by 15% while maintaining the same recall. The business impact was immediate: false positives dropped by 30%, customer complaints decreased, and the fraud detection system finally delivered on its promise.

This experience crystallized something I’d been learning throughout my career: hyperparameter optimization isn’t just a technical nicety—it’s often the difference between a model that works and one that doesn’t. I’ve seen well-tuned “simple” models consistently outperform poorly tuned complex ones.

A landmark 2018 study by Melis et al., “On the State of the Art of Evaluation in Neural Language Models”, demonstrated ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learning Data Science

Learning Data Science

Sam Lau, Joseph Gonzalez, Deborah Nolan
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn
LLMOps

LLMOps

Abi Aryan
Perfecting Your Thinking Skills

Perfecting Your Thinking Skills

MIT Sloan Management Review

Publisher Resources

ISBN: 9798341643178Errata Page