Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Naive Bayes classifier #6

Merged
merged 1 commit into from
Dec 14, 2018

Conversation

ChristophWurst
Copy link
Member

... because literature sometimes suggest this for intrusion detection systems, so I figured I'd give that a shot as well.

Results are worse and more fluctuating than the ones from the MLP classifier, but it's impressively fast.

Got 4452 samples for training: 636 positive, 1908 random negative and 1908 shuffled negative
Got 113 positive and 113 negative samples for validation (rate: 0.15)
Vecor dimensions: 48
Start training
Training finished after 0s

Run predictions on test data set
Predictions calculated

Persisting trained model
Model 39 persisted
Prescision(y): 0.875
Prescision(n): 0.67532467532468
Recall(y): 0.55752212389381
Recall(n): 0.92035398230088

Note: this model assumes statistical independence of featues and I'm not sure that is given with the current representation of input values.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant