19 Predicting Ozone levels
- Datasets:
Ozone
- Algorithms:
- SVM
- Partition Tree
https://cran.r-project.org/web/packages/e1071/vignettes/svmdoc.pdf
library(e1071)
library(rpart)
data(Ozone, package="mlbench")
## split data into a train and test set
index <- 1:nrow(Ozone)
testindex <- sample(index, trunc(length(index)/3))
testset <- na.omit(Ozone[testindex,-3])
trainset <- na.omit(Ozone[-testindex,-3])