Session Ready
Exercise

Machine learning with caret

Before we can train machine learning models and tune hyperparameters, we need to prepare the data. The data has again been loaded into your workspace as breast_cancer_data. The library caret has already been loaded.

Instructions 1/4
undefined XP
  • 1
  • 2
  • 3
  • 4
  • Use the caret package to create an index with 70% of the breast_cancer_data to create a training set and stratify the partitions by the response variable diagnosis.