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)
split two arrays into X_train, X_test, y_train, y_test using 80/20, and set seed at 42
X_train, X_test, y_train, y_test = train_test_split(x_matrix, y, test_size=0.2, random_state=42)