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

Exercise

Dimensionality and feature information

Imagine you work for a bank and have collected information about different loans made to different people. Your boss wants you to begin exploring the possibility of using this data to classify customers into different credit score categories. A sample of the available data is loaded into credit_df. You are curious about how many features the data has. You also want to identify features that will not be useful for classifying customers into different credit categories.

The tidyverse package has been loaded for you.

Instructions

100 XP
  • Find the number of features in credit_df.
  • Compute the variance of each feature in credit_df.
  • Identify the feature with zero variance and assign it to column_to_remove.