random_state=42
Image by aalmeidah from Pixabay
You may already use random state in your machine learning models. Do you know that random state is a model hyperparameter used to control the randomness involved in machine learning models?
In Scikit-learn, the random state hyperparameter is denoted by random_state
. It usually takes one of the following values.