This is the code repository for Advanced Deep Learning with Keras, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
This book covers advanced deep learning techniques to create successful AI. Using MLPs, CNNs, and RNNs as building blocks to more advanced techniques, you’ll study deep neural network architectures, Autoencoders, Generative Adversarial Networks (GANs), Variational AutoEncoders (VAEs), and Deep Reinforcement Learning (DRL) critical to many cutting-edge AI results.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, chapter2-deep-networks.
The code will look like the following:
def encoder_layer(inputs,
filters=16,
kernel_size=3,
strides=2,
activation='relu',
instance_norm=True):
"""Builds a generic encoder layer made of Conv2D-IN-LeakyReLU
IN is optional, LeakyReLU may be replaced by ReLU
"""
conv = Conv2D(filters=filters,
kernel_size=kernel_size,
strides=strides,
padding='same')
Advanced Deep Learning with Keras sample code used in the book
Sample outputs for random digits:
Sample outputs for random cifar10 images:
Sample outputs for random digits:
Sample outputs for digits 0 to 9:
Sample outputs for random digits:
Sample outputs for random digits:
Sample outputs for digits 0 to 9:
Sample outputs for digits 0 to 9:
Sample outputs for digits 0 to 9:
Sample outputs for random cifar10 images:
Sample outputs for MNIST to SVHN:
Generated MNIST by navigating the latent space:
Mnih, Volodymyr, et al. "Human-level control through deep reinforcement learning." Nature 518.7540 (2015): 529
DQN on Cartpole Environment:
Sutton and Barto, Reinforcement Learning: An Introduction
Policy Gradient on MountainCar Continuous Environment:
If you find this work useful, please cite:
@book{atienza2018advanced,
title={Advanced Deep Learning with Keras},
author={Atienza, Rowel},
year={2018},
publisher={Packt Publishing Ltd}
}