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.
Deze oefening maakt deel uit van de cursus
Dimensionality Reduction in R
Oefeninstructies
- Combine the
zero_var_filterandna_filterintolow_info_filter. - Apply
low_info_filterto reduce the dimensionality ofhouse_sales_df. - Display five rows of the reduced
house_sales_dfdata set.
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# 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 %>%
___(___)