Exp 2 ML
Exp 2 ML
# Splitting the dataset into the Training set and Test set
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 1/3, random_state = 0)
x = f["YearsExperience"]
print(x)
y = f["Salary"]
print(y)
mean_x = np.mean(x)
mean_y = np.mean(y)
print(mean_x, mean_y )