New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naive Bayes #108
Comments
The coefficient in the normal equation for the Gaussian distribution (also known as the probability density function) should indeed be: [ \text{coeff} = \frac{1}{\sqrt{2\pi}} + \epsilon ] where: (\pi) represents the mathematical constant pi (approximately 3.14159). [ \text{coeff} = \frac{1}{\sqrt{2\pi}} + \epsilon ] |
Nice |
Shouldn't the coefficient be
coeff = 1.0 / math.pi * math.sqrt(2.0 * math.pi) + eps
In equation of normal equation the pi is outside of sqrt
The text was updated successfully, but these errors were encountered: