해싱 시각화하기
데이터를 시각적으로 확인하면 도움이 될 때가 많아요. baked tibble에는 EducationField 요인을 나타내는 해시 인덱스가 포함되어 있어요. 이 데이터셋 전체 또는 일부를 행렬로 살펴보면서 패턴을 찾거나 잠재적인 오류를 확인해 보세요.
plot.matrix 패키지는 이미 로드되어 있어요.
이 연습은 강의의 일부입니다
R로 배우는 Feature Engineering
연습 안내
bakedtibble을(를) 행렬로 변환하세요.attrition_hash행렬을 플로팅하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Convert the baked tibble to a matrix
attrition_hash <- ___(baked)[1:50,]
# Plot the attrTheTition_hash matrix
___(attrition_hash,
col = c("white","steelblue"),
key = NULL,
border = NA)