Skip to content

A program that classifies individuals as Democrats or Republicans using Naive Bayes classifier.

Notifications You must be signed in to change notification settings

luntropy/naive-bayes-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Naive Bayes Classifier

Purpose

The objective of the program is to classify different individuals as Democrats or Republicans.

Rules

  • To train and validate the data is used 10-fold cross-validation.
  • The data is randomly separated in 10 sets on each program start.

About the program

The program is using the Naive Bayes classifier to classify different individuals as Democrats or Republicans based on 16 attributes.

To run the program

  • Run python3 main.py

Output

Outputs accuracy for each of the 10 trainings and the average accuracy for a summary assessment of the classifier.

Example

Example

About

A program that classifies individuals as Democrats or Republicans using Naive Bayes classifier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages