16.2 Principal Component Analysis (PCA)

  • PCA = unsupervised method, finds up to N new features (where N = # features) to explain variation.
bean_rec_trained %>%
  step_pca(all_numeric_predictors(), num_comp = 4) %>%
  plot_validation_results() + 
  ggtitle("Principal Component Analysis")