Click on the canvas to create more than 5 points and to get Nearest Neighbors

Linear regression with Gradient Descent

Second degree Polynomial regression with Gradient Descent