September 2017
Beginner to intermediate
560 pages
25h 18m
English
For a 70-15-15 split (training, validation, test), use the following commands:
> bh3 <- read.csv("boston-housing-classification.csv") > trg.idx <- createDataPartition(bh3$MEDV_CAT, p=0.7, list = FALSE) > trg.part <- bh3[trg.idx, ] > temp <- bh3[-trg.idx, ] > val.idx <- createDataPartition(temp$MEDV_CAT, p=0.5,list = FALSE) > val.part <- temp[val.idx, ] > test.part <- temp[-val.idx, ]
Read now
Unlock full access