Matlab, Gradient Descent, Linear Regression, Octave, Machine Learning.
normalize(x, n) % n = (x-max) / (max-min) maxs = max(x); mins = min(x); x = (x-max(x)) ./ (max(x)-min(x)); end Step 3: Gradient Descent To start off, gradient descent needs 3 things Learning rate — we will guess at 0.01 Number of repititions — we will guess to 1500 We need the following theta’s(ø),