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.
Diese Übung ist Teil des Kurses
Dimensionality Reduction in R
Anleitung zur Übung
- 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.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# 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 %>%
___(___)