Answers for "Split the data into 75% training and 25% testing data"

0

how to split train and test data in r

library(caTools)
sample <- sample.split(data$y, SplitRatio = 0.7)
train_data <- subset(data, sample == TRUE)
test_data <- subset(data, sample == FALSE)
Posted by: Guest on April-26-2020

Code answers related to "Split the data into 75% training and 25% testing data"

Browse Popular Code Answers by Language