Visualizando o hashing
Muitas vezes é útil olhar para uma representação visual dos seus dados. O baked tibble está carregado com os índices de hash que representam o fator EducationField. Você pode explorar todo ou parte desse conjunto de dados como uma matriz para identificar padrões ou detectar possíveis erros.
O pacote plot.matrix já foi carregado para você.
Este exercício faz parte do curso
Feature Engineering em R
Instruções do exercício
- Converta o
tibblebaked para uma matriz. - Plote a matriz
attrition_hash.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# 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)