Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: divide by zero encountered in divide #36

Closed
mark0935git opened this issue Oct 19, 2017 · 4 comments
Closed

RuntimeWarning: divide by zero encountered in divide #36

mark0935git opened this issue Oct 19, 2017 · 4 comments

Comments

@mark0935git
Copy link

Hi

I met the following warning when I was tuning parameters for RVR.

fast_rvm.py:48: RuntimeWarning: divide by zero encountered in divide
deltaL[recompute] = Qrec
2 / (Srec + 1. / delta_alpha) - np.log(1 + Srec*delta_alpha)**

What is the potential reason for this warning?

@xavisuau
Copy link

+1. Same problem here.

@MattWenham
Copy link

I am hitting a similar error when trying to run the Relevance Vector Machine Jupyter Notebook on Windows 10.

The log terms in lines 47-49 of fast_rvm.py are sometimes being given negative values as arguments.

@mshangiti
Copy link

mshangiti commented Feb 29, 2020

+1 same issue. It seems to happen on some dataset, while behave normally on others, I could not pinpoint the issue yet. Anyone found a solution to this?

@Bpoole908
Copy link

Bpoole908 commented Dec 5, 2023

Did anyone ever discover the issue or reasoning here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants