-
-
Save rvndbalaji/2bd06a7d86b8799584f6e408502e9a32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Install the package, if you havn't already done so. | |
install.packages('psych') | |
#Randomply sample the data into two parts with replacement and probability | |
ind = sample(2,nrow(room_n),replace = TRUE,prob = c(0.8,0.2)) | |
train = room_n[ind==1,] | |
test = room_n[ind==2,] | |
#Predictors | |
X = as.matrix(train[,-6]) | |
#Add 1 to column | |
X = cbind(1,X) | |
#Response | |
Y = as.numeric(as.matrix(train[,6])) | |
#Plot the correlation graph. THIS WILL TAKE A LOT OF TIME. 20K rows after all | |
pairs.panels(room) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment