- 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 4, Building 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') ...