Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 813 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 813 Bytes

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