bayesian-spam-filter/README.md

41 lines
777 B
Markdown
Raw Permalink Normal View History

2023-11-12 20:42:43 -06:00
# bayesian-spam-filter
## Report
Given SMSSpamCollection.txt was split in half for report
First half was used for generation, second half for actual filter
(Files included in test for convenience)
Results:
Spam precision: 0.935135
Spam recall: 0.39229
Ham precision: 0.780777
Ham recall: 0.987584
Spam F-Score: 0.552716
Ham F-Score: 0.872088
Accuracy: 0.689937
2023-10-24 15:01:06 -05:00
## Compiling the project
Prerequisites
- C++11
In order to compile the project, simply run these two commands:
cmake -B build -S .
cmake --build build
## Running the Project
2023-11-12 20:42:43 -06:00
The program should now be compiled at build/bin/filter
2023-10-24 15:01:06 -05:00
Simply run the program using:
2023-11-12 20:42:43 -06:00
build/bin/filter
2023-10-24 15:01:06 -05:00
2023-11-12 20:42:43 -06:00
## Usage
Use the `--help` argument for usage help