Book Image

Machine Learning Automation with TPOT

By : Dario Radečić
Book Image

Machine Learning Automation with TPOT

By: Dario Radečić

Overview of this book

The automation of machine learning tasks allows developers more time to focus on the usability and reactivity of the software powered by machine learning models. TPOT is a Python automated machine learning tool used for optimizing machine learning pipelines using genetic programming. Automating machine learning with TPOT enables individuals and companies to develop production-ready machine learning models cheaper and faster than with traditional methods. With this practical guide to AutoML, developers working with Python on machine learning tasks will be able to put their knowledge to work and become productive quickly. You'll adopt a hands-on approach to learning the implementation of AutoML and associated methodologies. Complete with step-by-step explanations of essential concepts, practical examples, and self-assessment questions, this book will show you how to build automated classification and regression models and compare their performance to custom-built models. As you advance, you'll also develop state-of-the-art models using only a couple of lines of code and see how those models outperform all of your previous models on the same datasets. By the end of this book, you'll have gained the confidence to implement AutoML techniques in your organization on a production level.
Table of Contents (14 chapters)
1
Section 1: Introducing Machine Learning and the Idea of Automation
3
Section 2: TPOT – Practical Classification and Regression
8
Section 3: Advanced Examples and Neural Networks in TPOT

What this book covers

Chapter 1, Machine Learning and the Idea of Automation, covers a brief introduction to machine learning, the difference between classification and regression tasks, an overview of automation and why it is needed, and the machine learning options in the Python ecosystem.

Chapter 2, Deep Dive into TPOT, provides an in-depth overview of what TPOT is and isn't, how it is used to handle automation in machine learning, and what types of tasks it can automate. This chapter also sees you set up the programming environment.

Chapter 3, Exploring Regression with TPOT, covers the use of TPOT for regression tasks. You'll learn how to apply automated algorithms to data and how to explore your datasets.

Chapter 4, Exploring Classification with TPOT, covers the use of TPOT for classification tasks. You'll learn how to perform basic exploratory data analysis, preparation, train automated models, and compare these automated models with default models from scikit-learn.

Chapter 5, Parallel Training with TPOT and Dask, covers the basics of parallel programming with Python and the Dask library. You'll learn how to use Dask to train automated models in a parallel fashion.

Chapter 6, Getting Started with Deep Learning: A Crash Course in Neural Networks, covers the fundamental ideas behind deep learning, such as neurons, layers, activation functions, and artificial neural networks.

Chapter 7, Neural Network Classifier with TPOT, provides a step-by-step guide to implementing a fully automated neural network classifier, dataset exploration, model training, and evaluation.

Chapter 8, TPOT Model Deployment, takes you through a step-by-step guide to model deployment. You'll learn how to use Flask and Flask-RESTful to build a REST API that is then deployed both locally and to AWS.

Chapter 9, Using the Deployed TPOT Model in Production, covers the usage of the deployed model in a notebook environment and in a simple web application.