difference between LinearRegression and svm.SVR(kernel=“linear”)
First there are questions on this forum very similar to this one but trust me none matches so no duplicating please. I have encountered two methods of linear regression using scikit's sklearn and I am failing to understand the difference between the two, especially where in first code there's a method train_test_split() called while in the other one directly fit method is called. I am studying with multiple resources and this single issue is very confusing to me. First which uses SVR X = np.array(df.drop(['label'], 1)) X = preprocessing.scale(X) y = np.array(df['label']) X_train, X_test, y