Gradient descent method, you need to install numpy libraries, examples are two points to fit. The comments can be removed from the full run. According to the online gradient descent algorithm formula prepared. Can be extended to multi-dimensional data points themselves fitting