Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Oh, forgot to mention that you'll want to compute probabilities using logarithms to avoid underflow precision loss (which will introduce classification errors). example: wordValue = System.Math.Log((double)count / (double)cat.TotalWords);


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: