The sklearn.cross_validation.StratifiedShuffleSplit is a function in the scikit-learn library of Python. It is used for creating a stratified random shuffling of a dataset for cross-validation purposes. This function splits the dataset into random train and test subsets with the same proportional distribution of classes as the original dataset. It is particularly useful when the dataset has imbalanced classes and we want to ensure that each split maintains the same class distribution as the original dataset.
Python StratifiedShuffleSplit - 36 examples found. These are the top rated real world Python examples of sklearn.cross_validation.StratifiedShuffleSplit extracted from open source projects. You can rate examples to help us improve the quality of examples.