I am trying to create a machine learning model using DecisionTreeClassifier. To train & test my data I imported train_test_split
method from scikit learn. But I can not understand one of its arguments called random_state
.
What is the significance of assigning numeric values to random_state
of model_selection.train_test_split
function and how may I know which numeric value to assign random_state for my decision tree?
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=324)