There must be a way to compute the log of the factorial directly to avoid dealing with ridiculous big numbers
|
return sum(logOfFactorialOfPredictionListStats) - sum(math.log(math.factorial(threeByThreeContingencyTable))) |
At least, this code should be refactored since the pattern of sum log factorial is repeated many times throughout this repo
There must be a way to compute the log of the factorial directly to avoid dealing with ridiculous big numbers
MEN2017/weights.py
Line 71 in 1f77631
At least, this code should be refactored since the pattern of sum log factorial is repeated many times throughout this repo