I have created the simulation of Linear Regression algorithm using P5.JS graphics library.
User can insert the data-points on canvas at runtime and accordingly the bestfit line would change its parameters.
Gradient Descent algorithm is implemented to minimize the cost function associated with Linear Regression.
sketch.js contains the core logic for the simulation.
simulations-ml/Linear_Regression_Simulation
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|