Advanced Deep Learning with Keras

Book description

A comprehensive guide to advanced deep learning techniques, including Autoencoders, GANs, VAEs, and Deep Reinforcement Learning, that drive today's most impressive AI results

Key Features

  • Explore the most advanced deep learning techniques that drive modern AI results
  • Implement Deep Neural Networks, Autoencoders, GANs, VAEs, and Deep Reinforcement Learning
  • A wide study of GANs, including Improved GANs, Cross-Domain GANs and Disentangled Representation GANs

Book Description

Recent developments in deep learning, including GANs, Variational Autoencoders, and Deep Reinforcement Learning, are creating impressive AI results in our news headlines - such as AlphaGo Zero beating world chess champions, and generative AI that can create art paintings that sell for over $400k because they are so human-like.

Advanced Deep Learning with Keras is a comprehensive guide to the advanced deep learning techniques available today, so you can create your own cutting-edge AI. Using Keras as an open-source deep learning library, you'll find hands-on projects throughout that show you how to create more effective AI with the latest techniques.

The journey begins with an overview of MLPs, CNNs, and RNNs, which are the building blocks for the more advanced techniques in the book. You'll learn how to implement deep learning models with Keras and Tensorflow, and move forwards to advanced techniques, as you explore deep neural network architectures, including ResNet and DenseNet, and how to create Autoencoders. You then learn all about Generative Adversarial Networks (GANs), and how they can open new levels of AI performance. Variational AutoEncoders (VAEs) are implemented, and you'll see how GANs and VAEs have the generative power to synthesize data that can be extremely convincing to humans - a major stride forward for modern AI. To complete this set of advanced techniques, you'll learn how to implement Deep Reinforcement Learning (DRL) such as Deep Q-Learning and Policy Gradient Methods, which are critical to many modern results in AI.

What you will learn

  • Cutting-edge techniques in human-like AI performance
  • Implement advanced deep learning models using Keras
  • The building blocks for advanced techniques - MLPs, CNNs, and RNNs
  • Deep neural networks ? ResNet and DenseNet
  • Autoencoders and Variational AutoEncoders (VAEs)
  • Generative Adversarial Networks (GANs) and creative AI techniques
  • Disentangled Representation GANs, and Cross-Domain GANs
  • Deep Reinforcement Learning (DRL) methods and implementation
  • Produce industry-standard applications using OpenAI gym
  • Deep Q-Learning and Policy Gradient Methods

Who this book is for

Some fluency with Python is assumed. As an advanced book, you'll be familiar with some machine learning approaches, and some practical experience with DL will be helpful. Knowledge of Keras or TensorFlow is not required but would be helpful.

Table of contents

  1. Advanced Deep Learning with Keras
    1. Table of Contents
    2. Advanced Deep Learning with Keras
      1. Why subscribe?
      2. Packt.com
    3. Contributors
      1. About the author
      2. About the reviewer
      3. Packt is Searching for Authors Like You
    4. Preface
      1. Who this book is for
      2. What this book covers
      3. To get the most out of this book
        1. Download the example code files
        2. Download the color images
        3. Conventions used
      4. Get in touch
        1. Reviews
    5. 1. Introducing Advanced Deep Learning with Keras
      1. Why is Keras the perfect deep learning library?
        1. Installing Keras and TensorFlow
      2. Implementing the core deep learning models - MLPs, CNNs, and RNNs
        1. The difference between MLPs, CNNs, and RNNs
      3. Multilayer perceptrons (MLPs)
        1. MNIST dataset
        2. MNIST digits classifier model
          1. Building a model using MLPs and Keras
        3. Regularization
        4. Output activation and loss function
        5. Optimization
        6. Performance evaluation
        7. Model summary
      4. Convolutional neural networks (CNNs)
        1. Convolution
        2. Pooling operations
        3. Performance evaluation and model summary
      5. Recurrent neural networks (RNNs)
      6. Conclusion
      7. References
    6. 2. Deep Neural Networks
      1. Functional API
        1. Creating a two-input and one-output model
      2. Deep residual networks (ResNet)
      3. ResNet v2
      4. Densely connected convolutional networks (DenseNet)
        1. Building a 100-layer DenseNet-BC for CIFAR10
      5. Conclusion
      6. References
    7. 3. Autoencoders
      1. Principles of autoencoders
      2. Building autoencoders using Keras
      3. Denoising autoencoder (DAE)
      4. Automatic colorization autoencoder
      5. Conclusion
      6. References
    8. 4. Generative Adversarial Networks (GANs)
      1. An overview of GANs
      2. Principles of GANs
      3. GAN implementation in Keras
      4. Conditional GAN
      5. Conclusion
      6. References
    9. 5. Improved GANs
      1. Wasserstein GAN
        1. Distance functions
        2. Distance function in GANs
        3. Use of Wasserstein loss
        4. WGAN implementation using Keras
      2. Least-squares GAN (LSGAN)
      3. Auxiliary classifier GAN (ACGAN)
      4. Conclusion
      5. References
    10. 6. Disentangled Representation GANs
      1. Disentangled representations
      2. InfoGAN
      3. Implementation of InfoGAN in Keras
      4. Generator outputs of InfoGAN
      5. StackedGAN
      6. Implementation of StackedGAN in Keras
      7. Generator outputs of StackedGAN
      8. Conclusion
      9. Reference
    11. 7. Cross-Domain GANs
      1. Principles of CycleGAN
      2. The CycleGAN Model
      3. Implementing CycleGAN using Keras
      4. Generator outputs of CycleGAN
        1. CycleGAN on MNIST and SVHN datasets
      5. Conclusion
      6. References
    12. 8. Variational Autoencoders (VAEs)
      1. Principles of VAEs
        1. Variational inference
        2. Core equation
        3. Optimization
        4. Reparameterization trick
        5. Decoder testing
        6. VAEs in Keras
        7. Using CNNs for VAEs
      2. Conditional VAE (CVAE)
      3. -VAE: VAE with disentangled latent representations
      4. Conclusion
      5. References
    13. 9. Deep Reinforcement Learning
      1. Principles of reinforcement learning (RL)
      2. The Q value
      3. Q-Learning example
      4. Q-Learning in Python
      5. Nondeterministic environment
      6. Temporal-difference learning
      7. Q-Learning on OpenAI gym
      8. Deep Q-Network (DQN)
      9. DQN on Keras
      10. Double Q-Learning (DDQN)
      11. Conclusion
      12. References
    14. 10. Policy Gradient Methods
      1. Policy gradient theorem
      2. Monte Carlo policy gradient (REINFORCE) method
        1. REINFORCE with baseline method
        2. Actor-Critic method
        3. Advantage Actor-Critic (A2C) method
        4. Policy Gradient methods with Keras
        5. Performance evaluation of policy gradient methods
      3. Conclusion
      4. References
    15. Other Books You May Enjoy
      1. Leave a review - let other readers know what you think
    16. Index

Product information

  • Title: Advanced Deep Learning with Keras
  • Author(s): Rowel Atienza
  • Release date: October 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781788629416