Linear Models for Regression — Applied Machine Learning in Python

PHOTO EMBED

Sat Oct 28 2023 07:03:36 GMT+0000 (Coordinated Universal Time)

Saved by @elham469

# Split the data into training and test set before doing more in-depth visualization
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42)
content_copyCOPY

https://amueller.github.io/aml/02-supervised-learning/05-linear-models-regression.html