matt-may / rgr

Simple Naive Bayesian classifier for gender predictions based on height/weight inputs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classifier

Description


This is a simple application that leverages a Naive Bayesian Classifier to make gender predictions.

Usage


To use the application, first git clone the repository to your local machine, and then cd to the application directory.

Once in the directory, install all the required gems and create your database:

$ bundle install; rake db:migrate;

To ensure all tests pass:

$ rake test

To verify all examples:

$ bundle exec rspec

Start the rails server:

$ rails s

If the database is not already seeded with training data, cd to the application root directory and run:

$ rake training_data:import[data/training.json]

And navigate to http://localhost:3000.

To add a new person to train the classifier, click Add New Person to Train Classifier.

Once at least ONE male and ONE female are added, gender prediction is unlocked. Click Get Gender Prediction to input height, weight values (as integers) and get an instant prediction.

About

Simple Naive Bayesian classifier for gender predictions based on height/weight inputs.


Languages

Language:Ruby 78.8%Language:HTML 15.7%Language:CSS 3.6%Language:JavaScript 1.2%Language:CoffeeScript 0.7%