ComeçarComece de graça

Feature selection with the combined filter

Now that you've created the zero-variance and missing values filters, put them to work to reduce the dimensionality of house_sales_df. You'll combine the filters and then use the combined filter to remove the low-information features from house_sales_df.

The zero_var_filter and na_filter objects are available for your use and the tidyverse package has been loaded for you.

Este exercício faz parte do curso

Dimensionality Reduction in R

Ver curso

Instruções do exercício

  • Combine the zero_var_filter and na_filter into low_info_filter.
  • Apply low_info_filter to reduce the dimensionality of house_sales_df.
  • Display five rows of the reduced house_sales_df data set.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Combine the two filters
___ <- ___(___, ___)

# Apply the filter
house_sales_filtered_df <- ___ %>% 
  ___(-all_of(___))

# Display five rows of the reduced data set
house_sales_filtered_df %>%
  ___(___)
Editar e executar o código