Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Gender Classification

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

Import a labeled face dataset.
Click for copyable input
Trim the faces out of the images and regularize the set using FindFaces, HistogramTransform, and ConformImages.
In[114]:=
Click for copyable input

{,...,}

Define a training and a test set and prepare the classifier with the former.
In[115]:=
Click for copyable input
Use Classify to build the classifier.
In[115]:=
Click for copyable input
Out[118]=
Measure the accuracy of the classifier on the two sets.
In[59]:=
Click for copyable input
Out[59]=
In[60]:=
Click for copyable input
Out[60]=
Create a function that can classify arbitrary images.
In[119]:=
Click for copyable input
In[63]:=
Click for copyable input
In[64]:=
Click for copyable input
Out[64]=
In[153]:=
Click for copyable input