Can we obtain hybrid algorithm for spam filtering from Naive Bayes & SVM?

自闭症网瘾萝莉.ら 提交于 2021-02-08 10:22:06

问题


I am developing a spam filtering application. I need suggestions regarding the hybrid algorithm from Naive Bayes & SVM.(e.g. based on feature vector, probabilities). Any help is appreciated. Can we develop hybrid algorithm from Naive bayes & SVM?


回答1:


Not sure why would you want to merge these two specific methods, but you could use ensemble learning methods for that.

EDIT: based on your comments, it seems you already have two independently trained classifiers, and would like to use them together for classification. One possible method for doing that would be to co-calibrate the classifier results, e.g. via summing and thresholding.

That is: given an input, e.g. an email, both Naive Bayes and SVM generate a real valued result; let's denote these results nb and svm . You could use linear regression to find coefficients c1 and c2 and a threshold t, so that you'd classify an email as spam only if c1 * nb + c2 * svm > t. You could, of course, use more elaborate methods, but with some luck this would give a slightly better performance than each classifier independently.



来源:https://stackoverflow.com/questions/14766404/can-we-obtain-hybrid-algorithm-for-spam-filtering-from-naive-bayes-svm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!