Linear Regression, Machine Learning, Deep Learning, Jupyter Notebook, Naem Azam.
Scikit-Learn’s built-in train_test_split() method: X = s_data.iloc[:, :-1].values y = s_data.iloc[:, 1].values from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=0) Training the model We have split our data into