Created
April 10, 2012 06:44
-
-
Save puneetlakhina/2348857 to your computer and use it in GitHub Desktop.
Multiply probabilities by doing log sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def lpm(*args): | |
return sum([math.log(x) for x in args]) | |
lpm(0.1,0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment