Laplace 平滑

1、

if  y~{0;1}:

p(y=1)=(#"1"+1)/("0"+1+"1"+1);

2、if  y~{1,2,...k}:

p(y=k)=(#"k"+1)/m+k;

m is the number of samples.

 

If you see the word "Viagra" a ton of times in the E-mail, it is more likely to be spam than it appears one time. 

Even once , I guess it's enough. @@_@@

發佈了12 篇原創文章 · 獲贊 1 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章