What is the use of stratifying parameter in the train_test_split method?
Stratify is used to split the dataset such that the same proportions of different classes of the target variable are present in both train and test set.
What is the use of stratifying parameter in the train_test_split method?
Stratify is used to split the dataset such that the same proportions of different classes of the target variable are present in both train and test set.
Comments
0 comments
Article is closed for comments.