My sonar gets -inf which stops my program
This happens randomly. Sometimes I can finish my program completely, sometimes it stops at several epochs. Once sonar gets -inf, my reward is abnormal which is also -inf, So the output of the net is abnormal, too. I want to know how to deal with the problem.
Without going into details, but I would simply use a conditional statement or filtering to get rid of
-inf
values.