Skip to content

Check numeric instability #7

@cthoyt

Description

@cthoyt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions