How to do it?:

Submission: Submit the link on Github of the assignment to Blackboard.


  1. Install the package mlbench and use the follows to import the data
library(mlbench)
library(tidyverse)
data(PimaIndiansDiabetes)
df <- tibble(PimaIndiansDiabetes)

Train and Test a decision tree and a random forest with caret. Plot the variable importance of these models.

  1. Train and Test a glmnet model. Plot the variable importance of the model.

  2. Train and test two models that are not ranger, glmnet or rpart with caret. If possible, plot the variable importance of the model.