topepo / APM_Exercises

Exercises for the book Applied Predictive Modeling by Kuhn and Johnson (2013)
194 stars 158 forks source link

A miscalculation in Exercise 4 #6

Open newbiettn opened 7 years ago

newbiettn commented 7 years ago

Hi,

Notice that in Exercise 4, we have

> sampNum
[1] 58

However, the length of vectors created by createDataPartition does not equal to sampNum.

> length(oilSplits2$Resample01)
[1] 61

Regards,