Comece agoraComece grátis

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 exercicio faz parte do curso

Feature Engineering em R

Ver curso

Instruções do exercicio

  • Converta o tibble baked para uma matriz.
  • Plote a matriz attrition_hash.

exercicio interativo prático

Tente este exercicio 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)
Editar e Executar Código