Gender Classification
Train a classifier to recognize male from female faces in images.
Import a labeled face dataset.
| In[1]:= | ![]() X |
Trim the faces out of the images and regularize the set.
| In[2]:= | ![]() X |
| In[3]:= | ![]() X |
Define a training and a test set and prepare the classifier with the former.
| In[4]:= | ![]() X |
| Out[4]= |
Measure the accuracy of the classifier on the two sets.
| In[5]:= | X |
| Out[5]= |
| In[6]:= | X |
| Out[6]= |
Create a function that can classify arbitrary images.
| In[7]:= | ![]() X |
| In[8]:= | ![]() X |
| In[9]:= | X |
| Out[9]= |





