sreejith2904

Untitled

Apr 16th, 2017
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.28 KB | None | 0 0
  1. csv <- read.table("SAheart.data", sep=",",head=T,row.names=1)
  2.  
  3. library(caTools)
  4. set.seed(101)
  5. sample <- sample.split(csv$chd, SplitRatio=0.5)
  6. train.data <- subset(csv, sample == TRUE)
  7. validation.data = subset(csv, sample == FALSE)
  8.  
  9.  
  10. priors <- getpriors(train.data, train.data$chd)
Advertisement
Add Comment
Please, Sign In to add comment