Implement train_test_split(X, y, test_size=0.2, random_seed=42) without using sklearn. Shuffle the data, split it, and return (X_train, X_test, y_train, y_test) as numpy arrays.
Sign in to see what a strong answer covers and to get AI feedback on your own.