Skip to content

Naïve Bayes Digit Classifier built with C++: trains and stores a model that can be used to classify digits made of ASCII characters, or digits drawn by hand in an integrated GUI.

DSD3V/Naive-Bayes

Repository files navigation

Naïve Bayes Digit Classifier

Train, store, and load a model built from 5,000 training images of ASCII character digits into a Naïve Bayes Digit Classifier. This classifier classifies any given digit made of ASCII characters with 77% accuracy, and can be used to classify digits drawn by hand in an integrated GUI with slightly less accuracy.

2 runprogram

What You Can Do:

  • Draw and classify digits with the integrated GUI
  • Train, load, and/or test the training model and/or classifier

How To Run The Program:

Windows:

To draw and classify digits in the integrated GUI:

  • Select and run the "naive-bayes-gui" configuration, OR run the "naive-bayes-gui.exe" executable
  • Note that the classification accuracy won't be the greatest, as the model was trained with digits made of ASCII characters

To train, load, and/or test the training model and/or classifier:

  • Run the "train-load-test.exe" executable in a terminal, and enter the command line arguments as shown. For example, to train the model, type "train-load-test.exe train data/training_images.txt data/training_labels.txt data/training_model.txt"
Note: This program does not support MacOS, Linux, or Mobile.

About

Naïve Bayes Digit Classifier built with C++: trains and stores a model that can be used to classify digits made of ASCII characters, or digits drawn by hand in an integrated GUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published