Last active
April 1, 2021 04:30
-
-
Save Harshit1694/449771ddaa71af871bb85f14d9c5c743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Splitting the data set into train and test | |
set.seed(2) | |
part <- sample(2, nrow(data), replace = TRUE, prob = c(0.7, 0.3)) | |
train<- data[part == 1,] | |
test<- data[part == 2,] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment