Hi guys I’m one week into my transition into a ML career.
I have decided to implement a linear regression model in javascript.
https://github.com/monstercameron/ML-scratchpad <— Repo here
Most of the code was written by chatGPT and I just modified the prompts and tweaked the code to all work together.
I have a rough idea of a univariate linear regression model: features and labels in, start the WandB at 1, make a prediction, calculate the MSE, gradient descent(still shaky on this concept), readjust the WandB of the model, repeat until MSE low enough/convergence.
The issue is my MSE keeps climbing even when I adjust the learning rate to a very small number. Any ideas?