Getting readyHow to do it…Case 1 – numerical target variable and two partitionsCase 2 – numerical target variable and three partitionsCase 3 – categorical target variable and two partitionsCase 4 – categorical target variable and three partitionsHow it works...There's more...Using a convenience function for partitioningSampling from a set of values