67
правок
Изменения
→Байессовская классификация
<pre>
#$$importing package and it's dependencies
library(e1071)
#splitting data into training and test data sets
index <- createDataPartition(y = data$target,p = 0.8,list = FALSE)
training <- data[index,]
testing <- data[-index,]