Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Machine Learning Engineering  with Python - Second Edition

You're reading from  Machine Learning Engineering with Python - Second Edition

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781837631964
Pages 462 pages
Edition 2nd Edition
Languages
Author (1):
Andrew P. McMahon Andrew P. McMahon
Profile icon Andrew P. McMahon

Table of Contents (12) Chapters

Preface 1. Introduction to ML Engineering 2. The Machine Learning Development Process 3. From Model to Model Factory 4. Packaging Up 5. Deployment Patterns and Tools 6. Scaling Up 7. Deep Learning, Generative AI, and LLMOps 8. Building an Example ML Microservice 9. Building an Extract, Transform, Machine Learning Use Case 10. Other Books You May Enjoy
11. Index

Auto-sklearn

One of our favorite libraries, good old scikit-learn, was always going to be one of the first targets for building a popular AutoML library. One of the very powerful features of auto-sklearn is that its API has been designed so that the main objects that optimize and section models and hyperparameters can be swapped seamlessly into your code.

As usual, an example will show this more clearly. In the following example, we will assume that the wine dataset (a favorite for this chapter) has already been retrieved and split into train and test samples in line with other examples, such as the one in the Detecting drift section:

  1. First, since this is a classification problem, the main thing we need to get from auto-sklearn is the autosklearn.classification object:
import numpy as np
import sklearn.datasets
import sklearn.metrics
import autosklearn.classification
  1. We must then define our auto-sklearn object. This provides several parameters that help us define how the model and...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}