João Martins
2016-06-03
A small application that compares how three different algorithms perform on a classification task.
Classification is done over the iris dataset.
Users can choose between three different algorithms supported by
the caret package:
multinom algorithmrfknnBesides the algorithms, users can change:
irisdatasetThe output is a confusion matrix, prediction accuracy, and a plot over the two most important prediction variables.
An example using random forests, with 5 resampling iterations and a 60/40 training/testing will yield the following:
Actual
Prediction setosa versicolor virginica
setosa 20 0 0
versicolor 0 19 3
virginica 0 1 17
Accuracy
0.9333333