1. Learn
  2. /
  3. Courses
  4. /
  5. Modeling with tidymodels in R

Exercise

Specifying a model and recipe

Now that you have created your training and test datasets, the next step is to specify your model and feature engineering pipeline. These are the two components that are needed to create a workflow object for the model training process.

In this exercise, you will define a decision tree model object with decision_tree() and a recipe specification with the recipe() function.

Your loans_training data has been loaded into this session.

Instructions 1/2

undefined XP
    1
    2
  • Use the decision_tree() function to specify a decision tree classification model with the rpart engine.