Rutger Lakin
June 7th, 2016
For this project, the species is predicted using both length and width of each sepal and petal class. The random forest method is used for classification purposes.
First, the model is trained using random forest
data(iris)
library(caret)
library(rattle)
x <- randomForest(Species ~ ., data=iris)
The accuracy is pretty high of 100%, as seen in the confusion matrix below.
Accuracy Kappa AccuracyLower AccuracyUpper AccuracyNull
1.000000e+00 1.000000e+00 9.757074e-01 1.000000e+00 3.333333e-01
AccuracyPValue McnemarPValue
2.702787e-72 NaN
The interface constists of:
The data product can succesfully be used to classify the species using both length and width predictors of each variable sepal and petal.