The calculateGaussianProbability function in the code includes a small epsilon (1e-10) in the denominator. What is the purpose of this?
To increase the predicted probabilities
To avoid division by zero when standard deviation is zero
To scale the probabilities to sum to 1
To speed up computation
This question is part of this quiz :
Naive Bayes Algorithm with Implementation