Improper theta values with NAN values after few iterations


Please help me to debug this code of air pollution challenge