Skip to content

The code uses the scikit-learn machine learning library to train a decision tree on a small dataset of body metrics (height, width, and shoe size) labeled male or female. Then we can predict the gender of someone given a novel set of body metrics.

Notifications You must be signed in to change notification settings

Sarbjyotsingh/Gender-Classification-with-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Gender-Classification-with-Python

##Overview

This is the code for the gender classification. The code uses the scikit-learn machine learning library to train a decision tree on a small dataset of body metrics (height, width, and shoe size) labeled male or female. Then we can predict the gender of someone given a novel set of body metrics.

##Dependencies

Scikit-learn (http://scikit-learn.org/stable/install.html)

numpy (pip install numpy)

scipy (pip install scipy)

Install missing dependencies using pip

##Usage

Once you have your dependencies installed via pip, run the script in terminal via

python prediction.py

About

The code uses the scikit-learn machine learning library to train a decision tree on a small dataset of body metrics (height, width, and shoe size) labeled male or female. Then we can predict the gender of someone given a novel set of body metrics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages