INNER CODE UNIT · Python

y

Mohitkr95/best-data-science-resources · Python ML Algorithms Implementation/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/Python/data_preprocessing_template.py:11

y = dataset.iloc[:, -1].values

# 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 = 0.2, random_state = 0)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…