Get startedGet started for free

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.

This exercise is part of the course

Hyperparameter Tuning in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create partition index
index <- ___(___, ___ = 0.7, list = FALSE)
Edit and Run Code