Visualiser le hashing
Il est souvent utile d’examiner une représentation visuelle de vos données. Le tibble baked est chargé avec les index de hachage représentant le facteur EducationField. Vous pouvez explorer tout ou partie de ce jeu de données sous forme de matrice pour identifier des motifs ou détecter d’éventuelles erreurs.
Le package plot.matrix a déjà été chargé pour vous.
Cet exercice fait partie du cours
Feature engineering en R
Instructions
- Convertissez le
tibblebaked en matrice. - Tracez la matrice
attrition_hash.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# 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)