Optimization Algorithms, Optimization Techniques, Machine Learning, Deep Learning, Convex Optimization.
create an instance of the LinearRegression class LR = LinearRegression() # define your X and Y as NumPy Arrays (column vectors) X = np.array([1,3,5]).reshape(-1,1) Y = np.array([4.8,12.4,15.5]).reshape(-1,1) LR.fit(X,Y) # calculate the model coefficients LR.intercept_ # the bias/intercept term