Machine Learning, Linear Regression, Gradient Descent, Python, Stochastic Gradient.
line that can minimize this error term. We could plot RSS as a response to b0 and b1 def rss(b0, b1, df): rss = 0 for i in range(0, df.shape[0]): rss += (df.Profit.values[i] - (b0 * df['R&D Spend'].values[i] + b1)) ** 2 return rss grid_b0 = np.linspace(0.5, 1.2, 50) grid_b1 = np.linspace(45000,