다른 특성과의 상관에 따른 선택

R에서의 차원 축소

Matt Pickard

Owner, Pickard Predictives, LLC

상관 플롯 생성 복습

healthcare_df %>% 
  select(where(is.numeric)) %>%

correlate() %>%
shave() %>%
rplot(print_cor = TRUE) +
theme(axis.text.x = element_text(angle = 90, hjust = 1))
R에서의 차원 축소

상관 플롯

헬스케어 회사 이직의 상관 플롯

R에서의 차원 축소

상관 강도

헬스케어 회사 이직의 상관 플롯 및 상관 강도 범위 표

R에서의 차원 축소

상관 필터?

헬스케어 회사 이직의 상관 플롯

R에서의 차원 축소

상관 필터?

상호 정보의 큰 겹침을 보여 주는 급여 인상률과 성과 등급의 베른 다이어그램

R에서의 차원 축소

상관 필터?

성과 등급을 제거한 급여 인상률의 베른 다이어그램

R에서의 차원 축소

상관 필터?

가치 있는 정보 제거를 보여 주기 위해 베른 다이어그램의 두 부분 모두 제거

R에서의 차원 축소

상관 필터 레시피

# create and prep the recipe
corr_recipe <-  
  recipe(Attrition ~ ., data = healthcare_df) %>%

step_corr(all_numeric_predictors(), threshold = 0.7) %>%
prep()
# Apply the recipe to the data filtered_healthcare_df <- corr_recipe %>% bake(new_data = NULL)
# Identify the features that were removed tidy(corr_recipe, number = 1)
R에서의 차원 축소

연습해 봅시다!

R에서의 차원 축소

Preparing Video For Download...