Data Science, Machine Learning, Linear Regression, Ridge Regression, Lasso Regression.
into features (X) and the target variable (y), and further split it into training and test sets: X = df['size'].values.reshape(-1,1) y = df['price'].values.reshape(-1,1) X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0) Step 4 — Train the model We will now