freiz / terminator Goto Github PK
View Code? Open in Web Editor NEWPromising spam filtering library making use of combined machine learning algorithms, written in C++
License: MIT License
Promising spam filtering library making use of combined machine learning algorithms, written in C++
License: MIT License
Either I don't understand how to drive this lib. Or it's not operating correctly. Probably more "a" hopefully.
So here is what I see when I train a decent size of spam and ham email from my personal folders:
This is the sorted scores of all the spam and inbox email that I trained the filter on. The DB file is 23MB which sounds plausible. There doesn't seem to be a significant difference between the two groups of email. Basically my code parses the email into a list of words, removing all the headers and HTML encoding. Then it passes that as the content std::string to Terminator::Train with the spam bool set. Then I went back and called Predict on the same email to make the graphs in the image.
I did notice that the classifier_weights_ seem to be weird:
classifier_weights_[0]=-1.25549e+65
classifier_weights_[1]=0
classifier_weights_[2]=0
classifier_weights_[3]=0
classifier_weights_[4]=0
classifier_weights_[5]=0
classifier_weights_[6]=0
classifier_weights_[7]=0
That looks wrong... but it's what gets saved and reloaded... maybe that's part of my issue?
I was training a whole bunch of email and one of them has a length of 3 bytes.
In Terminator::Vectorization it uses an unsigned variable for 'len' so 'len - NGRAM' evaluates to -1 which wraps around to max unsigned.
My short term fix is to change len and i to int64_t. So negative numbers exit the loop correctly.
Some examples: embeded, precison, navie, memroy, exsiting, perfomance, persistance
And "those need adaptive model" should be "those that need adaptive models".
"implementation are described" -> "implementation is described"
"The only dependencies" -> "The only dependency".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.