开始使用免费开始使用

可视化哈希结果

查看数据的可视化表示通常很有帮助。已为您加载包含 EducationField 因子哈希索引的 baked tibble。您可以将整个数据集或其中一部分以矩阵形式查看,以识别模式或发现潜在错误。

plot.matrix 包已为您加载。

本练习是课程的一部分

R 中的特征工程

查看课程

练习说明

  • bakedtibble 转换为矩阵。
  • 绘制 attrition_hash 矩阵。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# 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)
编辑并运行代码