Automated Machine Learning with AutoKeras

Book description

Create better and easy-to-use deep learning models with AutoKeras

Key Features

  • Design and implement your own custom machine learning models using the features of AutoKeras
  • Learn how to use AutoKeras for techniques such as classification, regression, and sentiment analysis
  • Get familiar with advanced concepts as multi-modal, multi-task, and search space customization

Book Description

AutoKeras is an AutoML open-source software library that provides easy access to deep learning models. If you are looking to build deep learning model architectures and perform parameter tuning automatically using AutoKeras, then this book is for you.

This book teaches you how to develop and use state-of-the-art AI algorithms in your projects. It begins with a high-level introduction to automated machine learning, explaining all the concepts required to get started with this machine learning approach. You will then learn how to use AutoKeras for image and text classification and regression. As you make progress, you'll discover how to use AutoKeras to perform sentiment analysis on documents. This book will also show you how to implement a custom model for topic classification with AutoKeras. Toward the end, you will explore advanced concepts of AutoKeras such as working with multi-modal data and multi-task, customizing the model with AutoModel, and visualizing experiment results using AutoKeras Extensions.

By the end of this machine learning book, you will be able to confidently use AutoKeras to design your own custom machine learning models in your company.

What you will learn

  • Set up a deep learning workstation with TensorFlow and AutoKeras
  • Automate a machine learning pipeline with AutoKeras
  • Create and implement image and text classifiers and regressors using AutoKeras
  • Use AutoKeras to perform sentiment analysis of a text, classifying it as negative or positive
  • Leverage AutoKeras to classify documents by topics
  • Make the most of AutoKeras by using its most powerful extensions

Who this book is for

This book is for machine learning and deep learning enthusiasts who want to apply automated ML techniques to their projects. Prior basic knowledge of Python programming and machine learning is expected to get the most out of this book.

Table of contents

  1. Automated Machine Learning with AutoKeras
  2. Contributors
  3. About the author
  4. About the reviewers
  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: AutoML Fundamentals
  7. Chapter 1: Introduction to Automated Machine Learning
    1. The anatomy of a standard ML workflow
      1. Data ingestion
      2. Data preprocessing
      3. Model deployment
      4. Model monitoring
    2. What is AutoML?
      1. Differences from the standard approach
    3. Types of AutoML
      1. Automated feature engineering
      2. Automated model choosing and hyperparameter optimization
      3. Automated neural network architecture selection
    4. Summary
    5. Further reading
  8. Chapter 2: Getting Started with AutoKeras
    1. Technical requirements
    2. What is deep learning?
    3. What is a neural network and how does it learn?
    4. How do deep learning models learn?
    5. Why AutoKeras?
      1. How to run the AutoKeras experiments?
    6. Installing AutoKeras
      1. Installing AutoKeras in the cloud
      2. Installing AutoKeras locally
    7. Hello MNIST: Implementing our first AutoKeras experiment
      1. Importing the needed packages
      2. Getting the MNIST dataset
      3. How are the digits distributed?
      4. Creating an image classifier
      5. Evaluating the model with the test set
      6. Visualizing the model
      7. Creating an image regressor
      8. Evaluating the model with the test set
      9. Visualizing the model
    8. Summary
  9. Chapter 3: Automating the Machine Learning Pipeline with AutoKeras
    1. Understanding tensors
      1. What is a tensor?
      2. Types of tensors
    2. Preparing the data to feed deep learning models
      1. Data preprocessing operations for neural network models
    3. Loading data into AutoKeras in multiple formats
    4. Splitting your dataset for training and evaluation
      1. Why you should split your dataset
      2. How to split your dataset
    5. Summary
  10. Section 2: AutoKeras in Practice
  11. Chapter 4: Image Classification and Regression Using AutoKeras
    1. Technical requirements
      1. Surpassing classical neural networks
    2. Creating a CIFAR-10 image classifier
    3. Creating and fine-tuning a powerful image classifier
      1. Improving the model performance
      2. Evaluating the model with the test set
      3. Visualizing the model
    4. Creating an image regressor to find out the age of people
    5. Creating and fine-tuning a powerful image regressor
      1. Improving the model performance
      2. Evaluating the model with the test set
      3. Visualizing the model
    6. Summary
  12. Chapter 5: Text Classification and Regression Using AutoKeras
    1. Technical requirements
    2. Working with text data
      1. Tokenization
      2. Vectorization
    3. Understanding RNNs
    4. One-dimensional CNNs (Conv1D)
    5. Creating an email spam detector
      1. Creating the spam predictor
      2. Evaluating the model
      3. Visualizing the model
    6. Predicting news popularity in social media
      1. Creating a text regressor
      2. Evaluating the model
      3. Visualizing the model
      4. Improving the model performance
      5. Evaluating the model with the test set
    7. Summary
  13. Chapter 6: Working with Structured Data Using AutoKeras
    1. Technical requirements
    2. Understanding structured data
    3. Working with structured data
    4. Creating a structured data classifier to predict Titanic survivors
      1. Creating the classifier
      2. Evaluating the model
      3. Visualizing the model
    5. Creating a structured data regressor to predict Boston house prices
      1. Creating a structure data regressor
      2. Evaluating the model
      3. Visualizing the model
    6. Summary
  14. Chapter 7: Sentiment Analysis Using AutoKeras
    1. Technical requirements
    2. Creating a sentiment analyzer
    3. Creating the sentiment predictor
    4. Evaluating the model
    5. Visualizing the model
    6. Analyzing the sentiment in specific sentences
    7. Summary
  15. Chapter 8: Topic Classification Using AutoKeras
    1. Technical requirements
    2. Understanding topic classification
    3. Creating a news topic classifier
      1. Creating the classifier
      2. Evaluating the model
      3. Visualizing the model
      4. Evaluating the model
    4. Customizing the model search space
    5. Summary
  16. Section 3: Advanced AutoKeras
  17. Chapter 9: Working with Multimodal and Multitasking Data
    1. Technical requirements
    2. Exploring models with multiple inputs or outputs
      1. What is AutoModel?
      2. What is multimodal?
      3. What is multitask?
    3. Creating a multitask/multimodal model
      1. Creating the model
      2. Visualizing the model
    4. Customizing the search space
    5. Summary
  18. Chapter 10: Exporting and Visualizing the Models
    1. Technical requirements
    2. Exporting your models
      1. How to save and load a model
    3. Visualizing your models with TensorBoard
      1. Using callbacks to log the model state
      2. Setting up and loading TensorBoard
      3. Sharing your ML experiment results with TensorBoard.dev
    4. Visualizing and comparing your models with ClearML
      1. Adding ClearML to code
      2. Comparing experiments
    5. Summary
      1. A final few words
    6. Why subscribe?
  19. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Leave a review - let other readers know what you think

Product information

  • Title: Automated Machine Learning with AutoKeras
  • Author(s): Luis Sobrecueva
  • Release date: May 2021
  • Publisher(s): Packt Publishing
  • ISBN: 9781800567641