AmazaspShumik/sklearn-bayes

RuntimeWarning: divide by zero encountered in divide

mark0935git opened this issue · 4 comments

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?

+1. Same problem here.

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.

+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?

Did anyone ever discover the issue or reasoning here?