Linear Regression, Gradient Descent, Machine Learning, Deep Learning, Naem Azam.
the data. To train the data we use the fit() method as usual. max_iter is used to define the max epochs and alpha is used to set the learning rate. 1 2 3 4 #Loading the data to the model from sklearn.linear_model import SGDRegressor reg = SGDRegressor(max_iter= 10000, alpha=0.0001) reg.fit(X,Y) Now