Implemented a general algorithm to solve linear regression problems with more than one independent variable using gradient descent. Gradient descent is used to get an aproximation of the minimum in the cost function (the least square error) so we can get the optimal parameters for the linear function.
Carlos Domínguez García
- Google Chrome - 59.0.3071.86
- Mozilla Firefox - 54.0
Though the algorithms are for any number of independent variables, for the demo we are using only one variable, this way is easier to visualize the problem. The program has a canvas where you click to put points, then you can click on the button "Display line" to train the intelligent agent with the points in canvas as training data. And the linear function is drawn in the canvas.