i am facing log(0) exception error in my code for predictions of Y which are very almost equal to zero.
due to this the cost/loss is tending to inf and i am unable to train my model
RuntimeWarning: divide by zero encountered in log
Hey @abhishek_goel1999, it is not feasible for us to check your code line by line, try using the code from this repo
And than try to figure out what’s the error with your part.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
i compared my code with one in the repo
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.