ComenzarEmpieza gratis

Visualizar el hashing

A menudo es útil ver una representación visual de tus datos. El tibble baked está cargado con los índices hash que representan el factor EducationField. Puedes explorar todo o parte de este conjunto de datos como una matriz para identificar patrones o detectar posibles errores.

El paquete plot.matrix ya se ha cargado por ti.

Este ejercicio forma parte del curso

Ingeniería de características en R

Ver curso

Instrucciones del ejercicio

  • Convierte el tibble baked a una matriz.
  • Representa la matriz attrition_hash.

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# 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 y ejecutar código