1. Learn
  2. /
  3. Courses
  4. /
  5. Hyperparameter Tuning in R

Connected

Exercise

Machine learning with caret

Before we can train machine learning models and tune hyperparameters, we need to prepare the data. The data is again available 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.