‘invalid value encountered in double_scalars’ warning, possibly numpy January 5, 2023 by Tarik In my case, I found out it was division by zero.