0%

Discover how TPOT can be used to handle automation in machine learning and explore the different types of tasks that TPOT can automate

Key Features

  • Understand parallelism and how to achieve it in Python.
  • Learn how to use neurons, layers, and activation functions and structure an artificial neural network.
  • Tune TPOT models to ensure optimum performance on previously unseen data.

Book Description

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.

What you will learn

  • Get to grips with building automated machine learning models
  • Build classification and regression models with impressive accuracy in a short time
  • Develop neural network classifiers with AutoML techniques
  • Compare AutoML models with traditional, manually developed models on the same datasets
  • Create robust, production-ready models
  • Evaluate automated classification models based on metrics such as accuracy, recall, precision, and f1-score
  • Get hands-on with deployment using Flask-RESTful on localhost

Who this book is for

Data scientists, data analysts, and software developers who are new to machine learning and want to use it in their applications will find this book useful. This book is also for business users looking to automate business tasks with machine learning. Working knowledge of the Python programming language and beginner-level understanding of machine learning are necessary to get started.

Table of Contents

  1. Machine Learning Automation with TPOT
  2. Contributors
  3. About the author
  4. About the reviewer
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the example code files
    5. Download the color images
    6. Conventions used
    7. Get in touch
    8. Reviews
  6. Section 1: Introducing Machine Learning and the Idea of Automation
  7. Chapter 1: Machine Learning and the Idea of Automation
    1. Technical requirements
    2. Reviewing the history of machine learning
    3. What is machine learning?
    4. In which sectors are the companies using machine learning?
    5. Supervised learning
    6. Reviewing automation
    7. What is automation?
    8. Why is automation needed?
    9. Are machine learning and automation the same thing?
    10. Applying automation to machine learning
    11. What are we trying to automate?
    12. The problem of too many parameters
    13. What is AutoML?
    14. Automation options
    15. PyCaret
    16. ObviouslyAI
    17. TPOT
    18. Summary
    19. Q&A
    20. Further reading
  8. Section 2: TPOT – Practical Classification and Regression
  9. Chapter 2: Deep Dive into TPOT
    1. Technical requirements
    2. Introducing TPOT
    3. A brief overview of genetic programming
    4. TPOT limitations
    5. Types of problems TPOT can solve
    6. How TPOT handles regression tasks
    7. How TPOT handles classification tasks
    8. Installing TPOT and setting up the environment
    9. Installing and configuring TPOT with standalone Python installation
    10. Installing and configuring TPOT through Anaconda
    11. Summary
    12. Q&A
    13. Further reading
  10. Chapter 3: Exploring Regression with TPOT
    1. Technical requirements
    2. Applying automated regression modeling to the fish market dataset
    3. Applying automated regression modeling to the insurance dataset
    4. Applying automated regression modeling to the vehicle dataset
    5. Summary
    6. Q&A
  11. Chapter 4: Exploring Classification with TPOT
    1. Technical requirements
    2. Applying automated classification models to the iris dataset
    3. Applying automated classification modeling to the titanic dataset
    4. Summary
    5. Q&A
  12. Chapter 5: Parallel Training with TPOT and Dask
    1. Technical requirements
    2. Introduction to parallelism in Python
    3. Introduction to the Dask library
    4. Training machine learning models with TPOT and Dask
    5. Summary
    6. Q&A
  13. Section 3: Advanced Examples and Neural Networks in TPOT
  14. Chapter 6: Getting Started with Deep Learning: Crash Course in Neural Networks
    1. Technical requirements
    2. Overview of deep learning
    3. Introducing artificial neural networks
    4. Theory of a single neuron
    5. Coding a single neuron
    6. Theory of a single layer
    7. Coding a single layer
    8. Activation functions
    9. Using neural networks to classify handwritten digits
    10. Neural networks in regression versus classification
    11. Summary
    12. Q&A
  15. Chapter 7: Neural Network Classifier with TPOT
    1. Technical requirements
    2. Exploring the dataset
    3. Exploring options for training neural network classifiers
    4. Training a neural network classifier
    5. Summary
    6. Questions
  16. Chapter 8: TPOT Model Deployment
    1. Technical requirements
    2. Why do we need model deployment?
    3. Introducing Flask and Flask-RESTful
    4. Best practices for deploying automated models
    5. Deploying machine learning models to localhost
    6. Deploying machine learning models to the cloud
    7. Summary
    8. Question
  17. Chapter 9: Using the Deployed TPOT Model in Production
    1. Technical requirements
    2. Making predictions in a notebook environment
    3. Developing a simple GUI web application
    4. Making predictions in a GUI environment
    5. Summary
    6. Q&A
    7. Why subscribe?
  18. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Leave a review - let other readers know what you think
3.144.42.196