เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Visualizing the hashing

It is often helpful to look at a visual representation of your data. The baked tibble is loaded with the hash indexes representing the EducationField factor. You can explore all or a portion of this dataset as a matrix to identify patterns or detect potential errors.

The plot.matrix package has already been loaded for you.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Feature Engineering in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Convert the baked tibble to a matrix.
  • Plot the attrition_hash matrix.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# 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)
แก้ไขและรันโค้ด