Machine Learning Automation with TPOT
eBook - ePub

Machine Learning Automation with TPOT

Dario Radecic

  1. 270 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Machine Learning Automation with TPOT

Dario Radecic

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Discover how TPOT can be used to handle automation in machine learning and explore the different types of tasks that TPOT can automateKey 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 DescriptionThe 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 localhostWho this book is forData 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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Machine Learning Automation with TPOT è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Machine Learning Automation with TPOT di Dario Radecic in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Tratamiento de datos. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2021
ISBN
9781800564961

Section 1: Introducing Machine Learning and the Idea of Automation

This section provides a quick revision of machine learning – classification and regression tasks, an overview of automation and why it is needed, and what options are available in the Python ecosystem.
This section contains the following chapter:
  • Chapter 1, Machine Learning and the Idea of Automation

Chapter 1: Machine Learning and the Idea of Automation

In this chapter, we'll make a quick revision of the essential machine learning topics. Topics such as supervised machine learning are covered, alongside the basic concepts of regression and classification.
We will understand why machine learning is essential for success in the 21st century from various perspectives: those of students, professionals, and business users, and we will discuss the different types of problems machine learning can solve.
Further, we will introduce the concept of automation and understand how it applies to machine learning tasks. We will go over automation options in the Python ecosystem and compare their pros and cons. We will briefly introduce the TPOT library, and discuss its role in the modern-day automation of machine learning.
This chapter will cover the following topics:
  • Reviewing the history of machine learning
  • Reviewing automation
  • Applying automation to machine learning
  • Automation options for Python

Technical requirements

To complete this chapter, you only need Python installed, alongside the basic data processing and machine learning libraries, such as numpy, pandas, matplotlib, and scikit-learn. You'll learn how to install and configure these in a virtual environment in Chapter 2, Deep Dive into TPOT, but let's keep this one easy. These libraries come preinstalled with any Anaconda distribution, so you shouldn't have to worry about it. If you are using raw Python instead of Anaconda, executing this line from the Terminal will install everything needed:
> pip install numpy pandas matplotlib scikit-learn
Keep in mind it's always a good practice to install libraries in a virtual environment, and you'll learn how to do that shortly.
The code for this chapter can be downloaded here:
https://github.com/PacktPublishing/Machine-Learning-Automation-with-TPOT/tree/main/Chapter01

Reviewing the history of machine learning

Just over 25 years ago (1994), a question was asked in an episode of The Today Show "What is the internet, anyway?" It's hard to imagine that a couple of decades ago, the general population had difficulty defining what the internet is and how it works. Little did they know that we would have intelligent systems managing themselves only a quarter of a century later, available to the masses.
The concept of machine learning was introduced much earlier in 1949 by Donald Hebb. He presented theories on neuron excitement and communication between neurons (A Brief History of Machine Learning – DATAVERSITY, Foote, K., March 26, 2019). He was the first to introduce the concept of artificial neurons, their activation, and their relationships through weights.
In the 1950s, Arthur Samuel developed a computer program for playing checkers. The memory was quite limited at that time, so he designed a scoring function that attempted to measure every player's probability of winning based on the positions on the board. The program chose its next move using a MinMax strategy, which eventually evolved into the MinMax algorithm (A Brief History of Machine Learning – DATAVERSITY, Foote, K., March 26; 2019). Samuel was also the first one to come up with the term machine learning.
Frank Rosenblatt decided to combine Hebb's artificial brain cell model with the work of Arthur Samuel to create a perceptron. In 1957, a perceptron was planned as a machine, which led to building a Mark 1 perceptron machine, designed for image classification.
The idea seemed promising, to say at least, but the machine couldn't recognize useful visual patterns, which caused a stall in further research – this period is known as the first AI winter. There wasn't much going on with the perceptron and neural network models until the 1990s.
The preceding couple of paragraphs tell us more than enough about the state of machine learning and deep learning at the end of the 20th century. Groups of individuals were making tremendous progress with neural networks, while the general population had difficulty understanding even what the internet is.
To make machine learning useful in the real world, scientists and researchers required two things:
  • Data
  • Computing power
The first was rapidly becoming more available due to the rise of the internet. The second was slowly moving into a phase of exponential growth – both in CPU performance and storage capacity.
Still, the state of machine learning in the late 1990s and early 2000s was nowhere near where it is today. Today's hardware has led to a significant increase in the use of machine-learning-powered systems in production applications. It is difficult to imagine a world where Netflix doesn't recommend movies, or Google doesn't automatically filter spam from regular email.
But, what is machine learning, anyway?

What is machine learning?

There are a lot of definitions of machine learning out there, some more and some less formal. Here are a couple worth mentioning:
  • Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed (What is Machine Learning? A Definition – Expert System, Expert System Team; May 6, 2020).
  • Machine learning is the concept that a computer program can learn and adapt to new data without human intervention (Machine Learning – Investopedia, Frankenfield, J.; August 31, 2020).
  • Machine learning is a field of computer science that aims to teach computers how to learn and act without being explicitly programmed (Machine Learning – DeepAI, Deep AI Team; May 17, 2020).
Even though these definitions are expressed differently, they convey the same information. Machine learning aims to develop a system or an algorithm capable of learning from data without human intervention.
The goal of a data scientist isn't to instruct the algorithm on how to learn, but rather to provide an adequately sized and prepared dataset to the algorithm and briefly specify the...

Indice dei contenuti

  1. Machine Learning Automation with TPOT
  2. Contributors
  3. Preface
  4. Section 1: Introducing Machine Learning and the Idea of Automation
  5. Chapter 1: Machine Learning and the Idea of Automation
  6. Section 2: TPOT – Practical Classification and Regression
  7. Chapter 2: Deep Dive into TPOT
  8. Chapter 3: Exploring Regression with TPOT
  9. Chapter 4: Exploring Classification with TPOT
  10. Chapter 5: Parallel Training with TPOT and Dask
  11. Section 3: Advanced Examples and Neural Networks in TPOT
  12. Chapter 6: Getting Started with Deep Learning: Crash Course in Neural Networks
  13. Chapter 7: Neural Network Classifier with TPOT
  14. Chapter 8: TPOT Model Deployment
  15. Chapter 9: Using the Deployed TPOT Model in Production
  16. Other Books You May Enjoy
Stili delle citazioni per Machine Learning Automation with TPOT

APA 6 Citation

Radecic, D. (2021). Machine Learning Automation with TPOT (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/2606851/machine-learning-automation-with-tpot-pdf (Original work published 2021)

Chicago Citation

Radecic, Dario. (2021) 2021. Machine Learning Automation with TPOT. 1st ed. Packt Publishing. https://www.perlego.com/book/2606851/machine-learning-automation-with-tpot-pdf.

Harvard Citation

Radecic, D. (2021) Machine Learning Automation with TPOT. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/2606851/machine-learning-automation-with-tpot-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Radecic, Dario. Machine Learning Automation with TPOT. 1st ed. Packt Publishing, 2021. Web. 15 Oct. 2022.