GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-machine-learning-book-3rd-edition/ch15 at master · stephen1065/python-machine-learning-book-3rd-edition

Expand file tree

/

ch15

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

ch15

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
images
images
 
 
README.md
README.md
 
 
ch15_part1.ipynb
ch15_part1.ipynb
 
 
ch15_part1.py
ch15_part1.py
 
 
ch15_part2.ipynb
ch15_part2.ipynb
 
 
ch15_part2.py
ch15_part2.py
 
 
example-image-gray.png
example-image-gray.png
 
 
example-image.png
example-image.png
 
 

README.md

Outline

Python Machine Learning - Code Examples

Chapter 15: Classifying Images with Deep Convolutional Neural Networks

Chapter Outline

  • The building blocks of CNNs
    • Understanding CNNs and feature hierarchies
    • Performing discrete convolutions
      • Discrete convolutions in one dimension
      • Padding inputs to control the size of the output feature maps
      • Determining the size of the convolution output
      • Performing a discrete convolution in 2D
    • Subsampling layers
    • Putting everything together – implementing a CNN
      • Working with multiple input or color channels
      • Regularizing an NN with dropout
    • Loss functions for classification
  • Implementing a deep CNN using TensorFlow
    • The multilayer CNN architecture
    • Loading and preprocessing the data
    • Implementing a CNN using the TensorFlow Keras API
      • Configuring CNN layers in Keras
      • Constructing a CNN in Keras
    • Gender classification from face images using a CNN
      • Loading the CelebA dataset
      • Image transformation and data augmentation
      • Training a CNN gender classifier
  • Summary

A note on using the code examples

The recommended way to interact with the code examples in this book is via Jupyter Notebook (the .ipynb files). Using Jupyter Notebook, you will be able to execute the code step by step and have all the resulting outputs (including plots and images) all in one convenient document.

Setting up Jupyter Notebook is really easy: if you are using the Anaconda Python distribution, all you need to install jupyter notebook is to execute the following command in your terminal:

conda install jupyter notebook

Then you can launch jupyter notebook by executing

jupyter notebook

A window will open up in your browser, which you can then use to navigate to the target directory that contains the .ipynb file you wish to open.

More installation and setup instructions can be found in the README.md file of Chapter 1.

(Even if you decide not to install Jupyter Notebook, note that you can also view the notebook files on GitHub by simply clicking on them: ch15_part1.ipynb and ch15_part2.ipynb)

In addition to the code examples, I added a table of contents to each Jupyter notebook as well as section headers that are consistent with the content of the book. Also, I included the original images and figures in hope that these make it easier to navigate and work with the code interactively as you are reading the book.

When I was creating these notebooks, I was hoping to make your reading (and coding) experience as convenient as possible! However, if you don't wish to use Jupyter Notebooks, I also converted these notebooks to regular Python script files (.py files) that can be viewed and edited in any plaintext editor.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.