Gender Classification 

Train a classifier to recognize male from female faces in images.

Import a labeled face dataset.

In[1]:=
Click for copyable input
X

Trim the faces out of the images and regularize the set.

In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X

Define a training and a test set and prepare the classifier with the former.

In[4]:=
Click for copyable input
X
Out[4]=

Measure the accuracy of the classifier on the two sets.

In[5]:=
Click for copyable input
X
Out[5]=
In[6]:=
Click for copyable input
X
Out[6]=

Create a function that can classify arbitrary images.

In[7]:=
Click for copyable input
X
In[8]:=
Click for copyable input
X
In[9]:=
Click for copyable input
X
Out[9]=