1. Learn
  2. /
  3. Courses
  4. /
  5. Dimensionality Reduction in R

Connected

Exercise

Evaluate the UMAP decision tree model

In the previous exercise, you created a workflow to apply UMAP and build a decision tree model. Now it's time to fit a model using that training data and compare its performance to the unreduced decision tree model. Because the target variable credit_score is categorical, you will use f_meas() to evaluate the models' performances. The unreduced model and its test predictions are stored in dt_fit and predict_df, respectively. The UMAP workflow you created is in umap_dt_workflow. The train and test sets are also provided for you.

The tidyverse, tidymodels, and embed packages have been loaded for you.

Instructions

100 XP
  • Use f_meas to evaluate the performance of the unreduced dt_fit.
  • Fit the UMAP reduced model using umap_dt_workflow.
  • Create the test set prediction data frame for the reduced UMAP model.
  • Use f_meas to evaluate the performance of the reduced umap_dt_fit.