RuntimeWarning: divide by zero encountered in divide
mark0935git opened this issue · 4 comments
mark0935git commented
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] = Qrec2 / (Srec + 1. / delta_alpha) - np.log(1 + Srec*delta_alpha)**
What is the potential reason for this warning?
xavisuau commented
+1. Same problem here.
MattWenham commented
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 commented
+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 commented
Did anyone ever discover the issue or reasoning here?