Get startedGet started for free

Training a finalized workflow

Congratulations on successfully tuning your decision tree model and finalizing your workflow! Your final_loans_wkfl object can now be used for model training and prediction on new data sources.

In this last exercise, you will train your finalized workflow on the entire loans_training dataset and evaluate its performance on the loans_test data.

The final_loans_wkfl and loans_split objects have been loaded into your session.

This exercise is part of the course

Modeling with tidymodels in R

View Course

Hands-on interactive exercise

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

# Train finalized decision tree workflow
loans_final_fit <- ___ %>% 
  ___(split = ___)
Edit and Run Code