-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented Naive Bayes - for digits - for faces - implemeted trainAndTune where we calculate the prior probabilities and conditional probability table. - determine the smoothing parameter k that results in the best accuracy in the validation data. - implemented calculateLogJointProbabilities where we store the probabilty of a label given all of the features for every label. * Basic Feature Extraction - modified the enhanced feature extraction to account for dark pixels. - Conducted time/accuracy analysis on the training data by using 10%, 20%, ..., 100% for 5 iterations each to ensure consistency among the results. - recorded the execution time of the training data, the mean accuracy, and the standard deviation of the accuracy - store the results in a dictionary which is then written to results.txt * Implemented the division for Counter objects - modified divideAll to accept a list of keys for the divisor to act on * Added commands to run naive bayes analysis - for digits - for faces
- Loading branch information
1 parent
584e992
commit cc2c939
Showing
4 changed files
with
242 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters