Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Denominator values too small in predict_dpi #6

Open
@mkirshner

Description

Hello,

I know this code has not been updated in a while, but I made some changes and was able to gather data and alter the millionaire.py file for testing. However, after debugging, I found that when the predict_dpi method in bayesian_regression.py runs, some of the calculated exponential values are so small that even when using the BigFloat library, Python assumes they are 0. Even summing all these up sometimes produces a value of 0, and so then the code divides by 0, creating NaN values. These NaN values prevent the rest of the code from executing as intended. Is there any way to circumvent this issue?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions