Scenario 1 – big images

  1. Fetch the dataset. For this analysis, we will continue with the male versus female classification dataset that we have downloaded in the Gender classification case study in Chapter 4Building a Deep Convolutional Neural Network:
$ wget https://d1p17r2m4rzlbo.cloudfront.net/wp-content/uploads/2017/04/a943287.csv
import pandas as pd, numpy as npfrom skimage import io# Location of file is /content/a943287.csv# be sure to change to location of downloaded file on your machinedata = pd.read_csv('/content/a943287.csv')
 data_male = data[data['please_select_the_gender_of_the_person_in_the_picture']=="male"].reset_index(drop='index')data_female = data[data['please_select_the_gender_of_the_person_in_the_picture']=="female"].reset_index(drop='index') ...

Get Neural Networks with Keras Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.