Get startedGet started for free

Fit and augment

With your lr_workflow ready to go, you can fit it to the test data to make predictions.

For model assessment, it is convenient to augment your fitted object by adding predictions and probabilities using augment().

This exercise is part of the course

Feature Engineering in R

View Course

Exercise instructions

  • Fit the workflow to the train data.
  • Augment the lr_fit object using the test data to get it ready for assessment.

Hands-on interactive exercise

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

# Fit the workflow to the train data
lr_fit <- 
  ___(___, data = train)

# Augment the lr_fit object
lr_aug <-
  ___(lr_fit, new_data = ___)

lr_aug
Edit and Run Code