piatra / ssl-project

School assignment
MIT License
0 stars 0 forks source link

Bag of words #11

Closed piatra closed 8 years ago

piatra commented 8 years ago

This pull requests adds a simple binary classifier. The idea is to feed it content and labels for Female or Male depending on the websites in order to build the classifier. In the end we can count the frequency in the result of the classified test data (which will be an array of 0s and 1s) and assign a probability for the user to be either male or female.

Eg. gives 5 websites and their content the result of the classifier will be [1,1,0,0,0] with 1 = Male 0 = Female so we are 60% certain the user is Female and 40% that it could be Male

tiriplicamihai commented 8 years ago

looks good.