
So I’m learning machine learning, and I watched a video saying that using 42 as a random seed helps keep results consistent every time you run the code. But I also read an article claiming that using 42 could lead to overfitting, so now I’m confused. What’s actually correct? Is using 42 good practice or could it be considered bad practice?
https://fetchdecodeexecute.substack.com/p/stop-using-42-as-a-random-seed
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
u/Big_Positive4226 — 14 days ago