21/05/2020

Objective of application

This app takes the iris dataset & builds a rpart model. This app takes two inputs - the proportion of training data & the predictors to be involved in the model. The outputs are displayed in three tabs containing model output, confusion matrix & statistics & the model tree plot

Glance of the data

Here is how the iris dataset looks-

head(iris)
##   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1          5.1         3.5          1.4         0.2  setosa
## 2          4.9         3.0          1.4         0.2  setosa
## 3          4.7         3.2          1.3         0.2  setosa
## 4          4.6         3.1          1.5         0.2  setosa
## 5          5.0         3.6          1.4         0.2  setosa
## 6          5.4         3.9          1.7         0.4  setosa

Methodology

  • The iris dataset is divided into the test & training data based on the proportion input by the user of the application
  • The predictors to be included while buildng the model are also selected based on the input by the user
  • train() function is used with method = “rpart” to build a classification tree model on the data
  • Three outputs are displayed on three different tabs - the model; confusion matrix & statistics; tree plot

Connect with me