'Gradient Descent gives FloatingPointError if n_iteration value is high

it works fine if the n_iteration value is sat to 10. but as i increase the value gives the follwing FloatingPointError. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source