Machine Learning (Simple Linear Regression) Using Phyton
Machine Learning (Simple Linear Regression) Using Phyton
# Splitting the dataset into the training set and test set
from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 1/3, random_state = 0)