What is random state here?What is it used for?
Does it matter if we change the random state…How will it affect our dataset?
Random state parameter used in train test split functionand why is it changed
hey @mishraji_27,
Random_state, as the name suggests is used for initializing the internal random number generator, which will decide the splitting of data into train and test indices in your case.
In simpler words, let’s say If you choose random_state = 42 then the data received after the split is X then if you again choose random_state = 42 you will get the same data X.
If this solves your query please mark the doubt as resolved.