June 2017
Beginner to intermediate
576 pages
15h 22m
English
Next, we will generate test and training datasets so that we can validate any models produced. There are many ways of generating test and training sets.
In earlier chapters, we used the createDataPartition function. For this example, we will generate the test and training data using native R functions. Please refer to the outline of the code here, and then run the code that follows: