sklearn-general Flashcards

1
Q

split two arrays into X_train, X_test, y_train, y_test using 80/20, and set seed at 42

A

X_train, X_test, y_train, y_test = train_test_split(x_matrix, y, test_size=0.2, random_state=42)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly